Mercurial > hg > soundsoftware-site
changeset 918:04114f36670d cannam_integration
Rename .erb to .html.erb in line with the convention
author | Chris Cannam |
---|---|
date | Tue, 06 Mar 2012 14:07:35 +0000 |
parents | 66ac47c3719b |
children | b03f28dd9026 |
files | app/views/activities/_recent.erb app/views/activities/_recent.html.erb app/views/attachments/toggle_active.erb app/views/attachments/toggle_active.html.erb app/views/members/_editlist.erb app/views/members/_editlist.html.erb app/views/members/_list.erb app/views/members/_list.html.erb app/views/members/index.erb app/views/members/index.html.erb app/views/my/blocks/_activitymyprojects.erb app/views/my/blocks/_activitymyprojects.html.erb app/views/my/blocks/_tipoftheday.erb app/views/my/blocks/_tipoftheday.html.erb app/views/projects/settings/_overview.erb app/views/projects/settings/_overview.html.erb vendor/plugins/embedded/app/views/embedded/index.erb vendor/plugins/embedded/app/views/embedded/index.html.erb vendor/plugins/embedded/app/views/settings/_embedded.erb vendor/plugins/embedded/app/views/settings/_embedded.html.erb vendor/plugins/engines/generators/plugin_migration/templates/plugin_migration.erb vendor/plugins/engines/generators/plugin_migration/templates/plugin_migration.html.erb vendor/plugins/redmine_bibliography/app/views/projects/_publications_box.erb vendor/plugins/redmine_bibliography/app/views/projects/_publications_box.html.erb vendor/plugins/redmine_bibliography/app/views/projects/show.erb vendor/plugins/redmine_bibliography/app/views/projects/show.html.erb vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.erb vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb vendor/plugins/redmine_bibliography/app/views/publications/autocomplete_for_author.erb vendor/plugins/redmine_bibliography/app/views/publications/autocomplete_for_author.html.erb vendor/plugins/redmine_bibliography/app/views/publications/autocomplete_for_project.erb vendor/plugins/redmine_bibliography/app/views/publications/autocomplete_for_project.html.erb vendor/plugins/redmine_bibliography/app/views/settings/_bibliography.erb vendor/plugins/redmine_bibliography/app/views/settings/_bibliography.html.erb vendor/plugins/redmine_bibliography/app/views/users/show.erb vendor/plugins/redmine_bibliography/app/views/users/show.html.erb vendor/plugins/redmine_checkout/app/views/projects/settings/_repository_checkout.erb vendor/plugins/redmine_checkout/app/views/projects/settings/_repository_checkout.html.erb vendor/plugins/redmine_checkout/app/views/projects/settings/_repository_checkout_protocol.erb vendor/plugins/redmine_checkout/app/views/projects/settings/_repository_checkout_protocol.html.erb vendor/plugins/redmine_checkout/app/views/redmine_checkout_hooks/_view_repositories_show_contextual.erb vendor/plugins/redmine_checkout/app/views/redmine_checkout_hooks/_view_repositories_show_contextual.html.erb vendor/plugins/redmine_checkout/app/views/settings/_checkout.erb vendor/plugins/redmine_checkout/app/views/settings/_checkout.html.erb vendor/plugins/redmine_checkout/app/views/settings/_checkout_protocol.erb vendor/plugins/redmine_checkout/app/views/settings/_checkout_protocol.html.erb vendor/plugins/redmine_checkout/app/views/settings/_checkout_scm.erb vendor/plugins/redmine_checkout/app/views/settings/_checkout_scm.html.erb vendor/plugins/redmine_checkout/app/views/settings/_redmine_checkout.erb vendor/plugins/redmine_checkout/app/views/settings/_redmine_checkout.html.erb vendor/plugins/redmine_tags/app/views/projects/_filter_tags.erb vendor/plugins/redmine_tags/app/views/projects/_filter_tags.html.erb vendor/plugins/redmine_tags/app/views/projects/index.erb vendor/plugins/redmine_tags/app/views/projects/index.html.erb |
diffstat | 52 files changed, 879 insertions(+), 879 deletions(-) [+] |
line wrap: on
line diff
--- a/app/views/activities/_recent.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,65 +0,0 @@ -<% events = @events_by_day %> -<% max = 5 %> -<% if (events.nil?) - activity = Redmine::Activity::Fetcher.new(User.current, :project => @project) - - if @project - # Don't show news (duplicated with News box) or wiki edits (too - # tedious) in project front page - activity.scope = [ "changesets", "files", "issues", "documents" ] - end - - events = activity.events(Date.today - 28, Date.today + 1) - - if defined? user - events = events.select { |e| user.member_of? e.project } - end - - events = events.first(max) - - end -%> - -<div id="activity"> - -<% if @project.nil? %> - <%= content_tag('h3', l(:label_activity_my_recent)) %> - <div class="activity box"> -<% end %> - -<% if events.empty? %> - - <% if @project.nil? %> - <p><%= l(:label_activity_my_recent_none) %></p> - <% end %> - -<% else %> - - <% if !@project.nil? %> - <div class="activity box"> - <%= content_tag('h3', l(:label_activity_recent)) %> - <% end %> - - <dl> - <% events.sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%> - <dt class="<%= User.current.logged? && e.respond_to?(:event_author) && User.current == e.event_author ? 'me' : nil %>"> - <%= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) %> - <span class="time"><%= format_time(e.event_datetime) %></span> - <%= content_tag('span', link_to_project(e.project), :class => 'project') if @project.nil? || @project != e.project %> - <% if e.respond_to?(:event_author) %> - <span class="author"><%= e.event_author %></span> - <% end %> - </dt> - <dd><%= link_to format_activity_title(e.event_title), e.event_url %> - <span class="description"><%= format_activity_description(e.event_description) %></span> - </dd> - <% end -%> - </dl> - - </div> - -<% end %> - -<% if events.empty? and @project.nil? %></div><% end %> - -</div>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/activities/_recent.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,65 @@ +<% events = @events_by_day %> +<% max = 5 %> +<% if (events.nil?) + activity = Redmine::Activity::Fetcher.new(User.current, :project => @project) + + if @project + # Don't show news (duplicated with News box) or wiki edits (too + # tedious) in project front page + activity.scope = [ "changesets", "files", "issues", "documents" ] + end + + events = activity.events(Date.today - 28, Date.today + 1) + + if defined? user + events = events.select { |e| user.member_of? e.project } + end + + events = events.first(max) + + end +%> + +<div id="activity"> + +<% if @project.nil? %> + <%= content_tag('h3', l(:label_activity_my_recent)) %> + <div class="activity box"> +<% end %> + +<% if events.empty? %> + + <% if @project.nil? %> + <p><%= l(:label_activity_my_recent_none) %></p> + <% end %> + +<% else %> + + <% if !@project.nil? %> + <div class="activity box"> + <%= content_tag('h3', l(:label_activity_recent)) %> + <% end %> + + <dl> + <% events.sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%> + <dt class="<%= User.current.logged? && e.respond_to?(:event_author) && User.current == e.event_author ? 'me' : nil %>"> + <%= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) %> + <span class="time"><%= format_time(e.event_datetime) %></span> + <%= content_tag('span', link_to_project(e.project), :class => 'project') if @project.nil? || @project != e.project %> + <% if e.respond_to?(:event_author) %> + <span class="author"><%= e.event_author %></span> + <% end %> + </dt> + <dd><%= link_to format_activity_title(e.event_title), e.event_url %> + <span class="description"><%= format_activity_description(e.event_description) %></span> + </dd> + <% end -%> + </dl> + + </div> + +<% end %> + +<% if events.empty? and @project.nil? %></div><% end %> + +</div>
--- a/app/views/attachments/toggle_active.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -<%= -file = Attachment.find(params[:id]) -active_id = "active-" + file.id.to_s -link_to_remote image_tag(file.active? ? 'fav.png' : 'fav_off.png'), - :url => {:controller => 'attachments', :action => 'toggle_active', :project_id => @project.id, :id => file}, - :update => active_id -%>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/attachments/toggle_active.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,7 @@ +<%= +file = Attachment.find(params[:id]) +active_id = "active-" + file.id.to_s +link_to_remote image_tag(file.active? ? 'fav.png' : 'fav_off.png'), + :url => {:controller => 'attachments', :action => 'toggle_active', :project_id => @project.id, :id => file}, + :update => active_id +%>
--- a/app/views/members/_editlist.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ -<%= error_messages_for 'member' %> - -<% roles = Role.find_all_givable - members = @project.member_principals.find(:all, :include => [:roles, :principal]).sort %> - -<% if members.any? %> -<table class="list members"> - <thead><tr> - <th><%= l(:label_user) %></th> - <th><%= l(:label_role_plural) %></th> - <th style="width:15%"></th> - </tr></thead> - <tbody> - <% members.each do |member| %> - <% next if member.new_record? %> - <tr id="member-<%= member.id %>" class="<%= cycle 'odd', 'even' %> member"> - <td class="<%= member.principal.class.name.downcase %>"><%= link_to_user member.principal %></td> - <td class="roles"> - <span id="member-<%= member.id %>-roles"><%=h member.roles.sort.collect(&:to_s).join(', ') %></span> - <% remote_form_for(:member, member, :url => {:controller => 'members', :action => 'edit', :id => member}, - :method => :post, :html => { :id => "member-#{member.id}-roles-form", :class => 'hol' }) do |f| %> - <p><% roles.each do |role| %> - <label><%= check_box_tag 'member[role_ids][]', role.id, member.roles.include?(role), :disabled => member.member_roles.detect {|mr| mr.role_id == role.id && !mr.inherited_from.nil?} %> <%=h role %></label><br /> - <% end %></p> - <%= hidden_field_tag 'member[role_ids][]', '' %> - <p><%= submit_tag l(:button_change), :class => "small" %> - <%= link_to_function l(:button_cancel), "$('member-#{member.id}-roles').show(); $('member-#{member.id}-roles-form').hide(); return false;" %></p> - <% end %> - </td> - <td class="buttons"> - <%= link_to_function l(:button_edit), "$('member-#{member.id}-roles').hide(); $('member-#{member.id}-roles-form').show(); return false;", :class => 'icon icon-edit' %> - <%= link_to_remote(l(:button_delete), { :url => {:controller => 'members', :action => 'destroy', :id => member}, - :method => :post, - :confirm => (!User.current.admin? && member.include?(User.current) ? l(:text_own_membership_delete_confirmation) : nil) - }, :title => l(:button_delete), - :class => 'icon icon-del') if member.deletable? %> - </td> - </tr> -<% end; reset_cycle %> - </tbody> -</table> -<% else %> -<p class="nodata"><%= l(:label_no_data) %></p> -<% end %> - -<% content_for :sidebar do %> -<% principals = Principal.active.find(:all, :limit => 100, :order => 'type, login, lastname ASC') - @project.principals %> - -<% if roles.any? && principals.any? %> - <% remote_form_for(:member, @member, :url => {:controller => 'members', :action => 'new', :id => @project}, :method => :post, - :loading => '$(\'member-add-submit\').disable();', - :complete => 'if($(\'member-add-submit\')) $(\'member-add-submit\').enable();') do |f| %> - <h3><%=l(:label_member_new)%></h3> - - <p><%= label_tag "principal_search", l(:label_principal_search) %><%= text_field_tag 'principal_search', nil %></p> - <%= observe_field(:principal_search, - :frequency => 0.5, - :update => :principals, - :url => { :controller => 'members', :action => 'autocomplete_for_member', :id => @project }, - :with => 'q') - %> - - <div id="principals"> - <% if params[:q] && params[:q].length > 1 %> - <%= principals_check_box_tags 'member[user_ids][]', @principals %> - <% end %> - </div> - - <p><%= l(:label_set_role_plural) %>:</p> - <% roles.each do |role| %> - <label><%= check_box_tag 'member[role_ids][]', role.id %> <%=h role %> </label><div style="margin-left: 2em; margin-bottom: 0.5em"><i><%=l( 'label_' + role.name.downcase + "_description").to_sym %></i></div> - <% end %> - - <p><%= submit_tag l(:button_add), :id => 'member-add-submit' %></p> - <% end %> -<% end %> -<% end %>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/members/_editlist.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,77 @@ +<%= error_messages_for 'member' %> + +<% roles = Role.find_all_givable + members = @project.member_principals.find(:all, :include => [:roles, :principal]).sort %> + +<% if members.any? %> +<table class="list members"> + <thead><tr> + <th><%= l(:label_user) %></th> + <th><%= l(:label_role_plural) %></th> + <th style="width:15%"></th> + </tr></thead> + <tbody> + <% members.each do |member| %> + <% next if member.new_record? %> + <tr id="member-<%= member.id %>" class="<%= cycle 'odd', 'even' %> member"> + <td class="<%= member.principal.class.name.downcase %>"><%= link_to_user member.principal %></td> + <td class="roles"> + <span id="member-<%= member.id %>-roles"><%=h member.roles.sort.collect(&:to_s).join(', ') %></span> + <% remote_form_for(:member, member, :url => {:controller => 'members', :action => 'edit', :id => member}, + :method => :post, :html => { :id => "member-#{member.id}-roles-form", :class => 'hol' }) do |f| %> + <p><% roles.each do |role| %> + <label><%= check_box_tag 'member[role_ids][]', role.id, member.roles.include?(role), :disabled => member.member_roles.detect {|mr| mr.role_id == role.id && !mr.inherited_from.nil?} %> <%=h role %></label><br /> + <% end %></p> + <%= hidden_field_tag 'member[role_ids][]', '' %> + <p><%= submit_tag l(:button_change), :class => "small" %> + <%= link_to_function l(:button_cancel), "$('member-#{member.id}-roles').show(); $('member-#{member.id}-roles-form').hide(); return false;" %></p> + <% end %> + </td> + <td class="buttons"> + <%= link_to_function l(:button_edit), "$('member-#{member.id}-roles').hide(); $('member-#{member.id}-roles-form').show(); return false;", :class => 'icon icon-edit' %> + <%= link_to_remote(l(:button_delete), { :url => {:controller => 'members', :action => 'destroy', :id => member}, + :method => :post, + :confirm => (!User.current.admin? && member.include?(User.current) ? l(:text_own_membership_delete_confirmation) : nil) + }, :title => l(:button_delete), + :class => 'icon icon-del') if member.deletable? %> + </td> + </tr> +<% end; reset_cycle %> + </tbody> +</table> +<% else %> +<p class="nodata"><%= l(:label_no_data) %></p> +<% end %> + +<% content_for :sidebar do %> +<% principals = Principal.active.find(:all, :limit => 100, :order => 'type, login, lastname ASC') - @project.principals %> + +<% if roles.any? && principals.any? %> + <% remote_form_for(:member, @member, :url => {:controller => 'members', :action => 'new', :id => @project}, :method => :post, + :loading => '$(\'member-add-submit\').disable();', + :complete => 'if($(\'member-add-submit\')) $(\'member-add-submit\').enable();') do |f| %> + <h3><%=l(:label_member_new)%></h3> + + <p><%= label_tag "principal_search", l(:label_principal_search) %><%= text_field_tag 'principal_search', nil %></p> + <%= observe_field(:principal_search, + :frequency => 0.5, + :update => :principals, + :url => { :controller => 'members', :action => 'autocomplete_for_member', :id => @project }, + :with => 'q') + %> + + <div id="principals"> + <% if params[:q] && params[:q].length > 1 %> + <%= principals_check_box_tags 'member[user_ids][]', @principals %> + <% end %> + </div> + + <p><%= l(:label_set_role_plural) %>:</p> + <% roles.each do |role| %> + <label><%= check_box_tag 'member[role_ids][]', role.id %> <%=h role %> </label><div style="margin-left: 2em; margin-bottom: 0.5em"><i><%=l( 'label_' + role.name.downcase + "_description").to_sym %></i></div> + <% end %> + + <p><%= submit_tag l(:button_add), :id => 'member-add-submit' %></p> + <% end %> +<% end %> +<% end %>
--- a/app/views/members/_list.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ - -<% roles = Role.find_all_givable - members = @project.member_principals.find(:all, :include => [:roles, :principal]).sort %> - -<% if members.any? %> - -<div id="members"> -<dl> -<% members.each do |member| %> -<dt id="member-<%= member.id %>" class="member <%= member.principal.class.name.downcase %> <%= User.current.logged? && User.current == member.user ? 'me' : nil %>"> -<%= avatar(member.user, :size => "24") %> -<span class="user"><%= link_to_user member.principal %></span> -<span class="email"><%= member.user.mail if !member.user.pref.hide_mail %></span> -<dd id="member-<%= member.id %>" class="roles <%= member.principal.class.name.downcase %> <%= User.current.logged? && User.current == member.user ? 'me' : nil %>"> -<span class="roles" id="member-<%= member.id %>-roles"><%=h member.roles.sort.collect(&:to_s).join(', ') %></span> -</dd> -<% end %> -</dl> -<% else %> -<p class="nodata"><%= l(:label_no_data) %></p> -<% end %> -</div> - -<% content_for :sidebar do %> -<% end %> -
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/members/_list.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,26 @@ + +<% roles = Role.find_all_givable + members = @project.member_principals.find(:all, :include => [:roles, :principal]).sort %> + +<% if members.any? %> + +<div id="members"> +<dl> +<% members.each do |member| %> +<dt id="member-<%= member.id %>" class="member <%= member.principal.class.name.downcase %> <%= User.current.logged? && User.current == member.user ? 'me' : nil %>"> +<%= avatar(member.user, :size => "24") %> +<span class="user"><%= link_to_user member.principal %></span> +<span class="email"><%= member.user.mail if !member.user.pref.hide_mail %></span> +<dd id="member-<%= member.id %>" class="roles <%= member.principal.class.name.downcase %> <%= User.current.logged? && User.current == member.user ? 'me' : nil %>"> +<span class="roles" id="member-<%= member.id %>-roles"><%=h member.roles.sort.collect(&:to_s).join(', ') %></span> +</dd> +<% end %> +</dl> +<% else %> +<p class="nodata"><%= l(:label_no_data) %></p> +<% end %> +</div> + +<% content_for :sidebar do %> +<% end %> +
--- a/app/views/members/index.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ - -<h2><%=l(:label_member_plural)%></h2> - -<% editable = authorize_for('members', 'edit') %> - -<div id="memberlist"> -<% if editable %> -<%= render :partial => 'editlist' %> -<% else %> -<%= render :partial => 'list' %> -<% end %> -</div> -
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/members/index.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,13 @@ + +<h2><%=l(:label_member_plural)%></h2> + +<% editable = authorize_for('members', 'edit') %> + +<div id="memberlist"> +<% if editable %> +<%= render :partial => 'editlist' %> +<% else %> +<%= render :partial => 'list' %> +<% end %> +</div> +
--- a/app/views/my/blocks/_activitymyprojects.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ - -<%= render :partial => 'activities/recent', :locals => { :user => User.current } %> - -
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/blocks/_activitymyprojects.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,4 @@ + +<%= render :partial => 'activities/recent', :locals => { :user => User.current } %> + +
--- a/app/views/my/blocks/_tipoftheday.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ - <h3><%=l(:label_tipoftheday)%></h3> - <div class="tipoftheday box"> - <div class="tip"><%= textilizable Setting.tipoftheday_text %></div> - </div>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/blocks/_tipoftheday.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,4 @@ + <h3><%=l(:label_tipoftheday)%></h3> + <div class="tipoftheday box"> + <div class="tip"><%= textilizable Setting.tipoftheday_text %></div> + </div>
--- a/app/views/projects/settings/_overview.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ - -<% form_for :project, @project, - :url => { :action => 'overview', :id => @project }, - :html => {:id => 'overview-form'} do |f| %> - -<div class="box tabular"> - -<p><%= l(:text_has_welcome_page_info, { :overview_link => link_to(l(:label_overview), { :controller => 'projects', :action => 'show' } ) } ) %></p> - -<% if @project.module_enabled? :wiki %> - -<p><%= link_to(l(:button_welcome_page_edit), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %> - -<% else %> - -<p><%= l(:text_has_welcome_page_wiki_disabled, { :modules_link => link_to(l(:label_module_plural), { :controller => 'projects', :action => 'settings', :tab => 'modules' } ) } ) %></p> - -<% end %> - -<p><label for="has_welcome_page"><%= l(:label_has_welcome_page) %></label> -<%= check_box_tag 'has_welcome_page', 1, @project.has_welcome_page? -%> -<br/><em><%= l(:setting_has_welcome_page) %></em> - -</p> - -</div> - -<%= submit_tag l(:button_save) %> - -<% end %>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/settings/_overview.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,30 @@ + +<% form_for :project, @project, + :url => { :action => 'overview', :id => @project }, + :html => {:id => 'overview-form'} do |f| %> + +<div class="box tabular"> + +<p><%= l(:text_has_welcome_page_info, { :overview_link => link_to(l(:label_overview), { :controller => 'projects', :action => 'show' } ) } ) %></p> + +<% if @project.module_enabled? :wiki %> + +<p><%= link_to(l(:button_welcome_page_edit), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %> + +<% else %> + +<p><%= l(:text_has_welcome_page_wiki_disabled, { :modules_link => link_to(l(:label_module_plural), { :controller => 'projects', :action => 'settings', :tab => 'modules' } ) } ) %></p> + +<% end %> + +<p><label for="has_welcome_page"><%= l(:label_has_welcome_page) %></label> +<%= check_box_tag 'has_welcome_page', 1, @project.has_welcome_page? -%> +<br/><em><%= l(:setting_has_welcome_page) %></em> + +</p> + +</div> + +<%= submit_tag l(:button_save) %> + +<% end %>
--- a/vendor/plugins/embedded/app/views/embedded/index.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -<!-- Embedded page --> -<div class="embedded"> -<%= @content %> -</div> -<!-- Embedded page end --> - -<% html_title(@title) if @title %> - -<% asset_include_tags(@doc_template) %>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/embedded/app/views/embedded/index.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,9 @@ +<!-- Embedded page --> +<div class="embedded"> +<%= @content %> +</div> +<!-- Embedded page end --> + +<% html_title(@title) if @title %> + +<% asset_include_tags(@doc_template) %>
--- a/vendor/plugins/embedded/app/views/settings/_embedded.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -<p><label>HTML directory</label> -<%= text_field_tag 'settings[path]', @settings['path'], :size => 80 %> -<br /><em>Use {PROJECT} to include the project identifier in the path</em></p> - -<p><label>Index files</label> -<%= text_area_tag 'settings[index]', @settings['index'], :cols => 60, :rows => 3 %> -<br /><em>Space separated list of index files by priority</em></p> - -<p><label>Valid extensions</label> -<%= text_area_tag 'settings[extensions]', @settings['extensions'], :cols => 60, :rows => 3 %> -<br /><em>Space separated list of file extensions that can be viewed (case insensitive)</em></p> - -<p><label>Default template</label> -<%= select_tag 'settings[template]', options_for_select([''] + Redmine::Plugins::Embedded.available_templates, @settings['template']) %></p> - -<p><label>Files encoding</label> -<%= text_field_tag 'settings[encoding]', @settings['encoding'] %> -<br /><em>Eg. ISO-8859-1<br />Leave this field empty if HTML files are UTF-8 encoded</em></p> - -<p><label>Menu caption</label> -<%= text_field_tag 'settings[menu]', @settings['menu'], :size => 30 %> -<br /><em>Clear this field if you don't want to add a tab to the project menu</em></p>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/embedded/app/views/settings/_embedded.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,22 @@ +<p><label>HTML directory</label> +<%= text_field_tag 'settings[path]', @settings['path'], :size => 80 %> +<br /><em>Use {PROJECT} to include the project identifier in the path</em></p> + +<p><label>Index files</label> +<%= text_area_tag 'settings[index]', @settings['index'], :cols => 60, :rows => 3 %> +<br /><em>Space separated list of index files by priority</em></p> + +<p><label>Valid extensions</label> +<%= text_area_tag 'settings[extensions]', @settings['extensions'], :cols => 60, :rows => 3 %> +<br /><em>Space separated list of file extensions that can be viewed (case insensitive)</em></p> + +<p><label>Default template</label> +<%= select_tag 'settings[template]', options_for_select([''] + Redmine::Plugins::Embedded.available_templates, @settings['template']) %></p> + +<p><label>Files encoding</label> +<%= text_field_tag 'settings[encoding]', @settings['encoding'] %> +<br /><em>Eg. ISO-8859-1<br />Leave this field empty if HTML files are UTF-8 encoded</em></p> + +<p><label>Menu caption</label> +<%= text_field_tag 'settings[menu]', @settings['menu'], :size => 30 %> +<br /><em>Clear this field if you don't want to add a tab to the project menu</em></p>
--- a/vendor/plugins/engines/generators/plugin_migration/templates/plugin_migration.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -class <%= class_name %> < ActiveRecord::Migration - def self.up - <%- plugins.each do |plugin| -%> - Engines.plugins["<%= plugin.name %>"].migrate(<%= new_versions[plugin.name] %>) - <%- end -%> - end - - def self.down - <%- plugins.each do |plugin| -%> - Engines.plugins["<%= plugin.name %>"].migrate(<%= current_versions[plugin.name] %>) - <%- end -%> - end -end
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/engines/generators/plugin_migration/templates/plugin_migration.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,13 @@ +class <%= class_name %> < ActiveRecord::Migration + def self.up + <%- plugins.each do |plugin| -%> + Engines.plugins["<%= plugin.name %>"].migrate(<%= new_versions[plugin.name] %>) + <%- end -%> + end + + def self.down + <%- plugins.each do |plugin| -%> + Engines.plugins["<%= plugin.name %>"].migrate(<%= current_versions[plugin.name] %>) + <%- end -%> + end +end
--- a/vendor/plugins/redmine_bibliography/app/views/projects/show.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,120 +0,0 @@ -<div class="contextual"> - <% if User.current.allowed_to?(:add_subprojects, @project) %> - <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %> - <% end %> - - <% if @project.module_enabled? :redmine_bibliography %> - <% if User.current.allowed_to?(:add_publication, @project) %> - <%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %> - <% end %> - <% end %> -</div> - -<% if @project.has_welcome_page %> -<% page = @project.wiki.find_page("Overview") %> -<% end %> - -<% if page %> - -<% if @project.module_enabled? :wiki %> -<% if User.current.allowed_to?(:edit_wiki_pages, @project) %> -<div class="contextual"> -<%= link_to(l(:button_welcome_page_edit_this), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %> -</div> -<% end %> -<% end %> - -<div class="contextual" style="clear: right"> -<ul> -<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %> -<% if @subprojects.any? %> - <li><%=l(:label_subproject_plural)%>: - <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li> -<% end %> -</ul> -</div> - -<%= render(:partial => "wiki/content", :locals => {:content => page.content_for_version()}) %> - -<% else %> - -<h2><%=l(:label_overview)%></h2> - -<div class="splitcontentleft"> - <div class="wiki"> - <%= textilizable @project.description %> - </div> - <ul> - <% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %> - <% if @subprojects.any? %> - <li><%=l(:label_subproject_plural)%>: - <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li> - <% end %> - <% @project.visible_custom_field_values.each do |custom_value| %> - <% if !custom_value.value.blank? %> - <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li> - <% end %> - <% end %> - </ul> - - <% if User.current.allowed_to?(:view_issues, @project) %> - <div class="issues box"> - <h3><%=l(:label_issue_tracking)%></h3> - <ul> - <% for tracker in @trackers %> - <li><%= link_to tracker.name, :controller => 'issues', :action => 'index', :project_id => @project, - :set_filter => 1, - "tracker_id" => tracker.id %>: - <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i, - :total => @total_issues_by_tracker[tracker].to_i) %> - </li> - <% end %> - </ul> - <p> - <%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %> - <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %> - | <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %> - <% end %> - <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %> - | <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %> - <% end %> - </p> - </div> - <% end %> - <%= call_hook(:view_projects_show_left, :project => @project) %> -</div> - -<div class="splitcontentright"> - - <%= render :partial => 'bibliography_box' %> - - <%= render :partial => 'members_box' %> - - <% if @news.any? && authorize_for('news', 'index') %> - <div class="news box"> - <h3><%=l(:label_news_latest)%></h3> - <%= render :partial => 'news/news', :collection => @news %> - <p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p> - </div> - <% end %> - <%= call_hook(:view_projects_show_right, :project => @project) %> -</div> - -<% content_for :sidebar do %> - <%= call_hook(:view_projects_show_sidebar_top, :project => @project) %> - <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %> - <h3><%= l(:label_spent_time) %></h3> - <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p> - <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> | - <%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @project}) %></p> - <% end %> - <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %> -<% end %> - -<% end %> - -<% content_for :header_tags do %> -<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %> -<% end %> - -<% html_title(l(:label_overview)) -%>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_bibliography/app/views/projects/show.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,120 @@ +<div class="contextual"> + <% if User.current.allowed_to?(:add_subprojects, @project) %> + <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %> + <% end %> + + <% if @project.module_enabled? :redmine_bibliography %> + <% if User.current.allowed_to?(:add_publication, @project) %> + <%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %> + <% end %> + <% end %> +</div> + +<% if @project.has_welcome_page %> +<% page = @project.wiki.find_page("Overview") %> +<% end %> + +<% if page %> + +<% if @project.module_enabled? :wiki %> +<% if User.current.allowed_to?(:edit_wiki_pages, @project) %> +<div class="contextual"> +<%= link_to(l(:button_welcome_page_edit_this), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %> +</div> +<% end %> +<% end %> + +<div class="contextual" style="clear: right"> +<ul> +<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %> +<% if @subprojects.any? %> + <li><%=l(:label_subproject_plural)%>: + <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li> +<% end %> +</ul> +</div> + +<%= render(:partial => "wiki/content", :locals => {:content => page.content_for_version()}) %> + +<% else %> + +<h2><%=l(:label_overview)%></h2> + +<div class="splitcontentleft"> + <div class="wiki"> + <%= textilizable @project.description %> + </div> + <ul> + <% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %> + <% if @subprojects.any? %> + <li><%=l(:label_subproject_plural)%>: + <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li> + <% end %> + <% @project.visible_custom_field_values.each do |custom_value| %> + <% if !custom_value.value.blank? %> + <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li> + <% end %> + <% end %> + </ul> + + <% if User.current.allowed_to?(:view_issues, @project) %> + <div class="issues box"> + <h3><%=l(:label_issue_tracking)%></h3> + <ul> + <% for tracker in @trackers %> + <li><%= link_to tracker.name, :controller => 'issues', :action => 'index', :project_id => @project, + :set_filter => 1, + "tracker_id" => tracker.id %>: + <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i, + :total => @total_issues_by_tracker[tracker].to_i) %> + </li> + <% end %> + </ul> + <p> + <%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %> + <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %> + | <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %> + <% end %> + <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %> + | <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %> + <% end %> + </p> + </div> + <% end %> + <%= call_hook(:view_projects_show_left, :project => @project) %> +</div> + +<div class="splitcontentright"> + + <%= render :partial => 'bibliography_box' %> + + <%= render :partial => 'members_box' %> + + <% if @news.any? && authorize_for('news', 'index') %> + <div class="news box"> + <h3><%=l(:label_news_latest)%></h3> + <%= render :partial => 'news/news', :collection => @news %> + <p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p> + </div> + <% end %> + <%= call_hook(:view_projects_show_right, :project => @project) %> +</div> + +<% content_for :sidebar do %> + <%= call_hook(:view_projects_show_sidebar_top, :project => @project) %> + <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %> + <h3><%= l(:label_spent_time) %></h3> + <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p> + <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> | + <%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @project}) %></p> + <% end %> + <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %> +<% end %> + +<% end %> + +<% content_for :header_tags do %> +<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %> +<% end %> + +<% html_title(l(:label_overview)) -%>
--- a/vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> - - -<div id="authors" class="fields"> -<!-- <h4><%= l("label_author_1") %></h4> --> - - <div id="<%= form_tag_id( f.object_name, :search_author ) %>" style=<%= "display:none;" unless params[:action] == "new" %> > - <p> - <%= f.text_field :search_name, :size => 25 %> - <%= observe_field( form_tag_id(f.object_name, :search_name), :frequency => 0.5, :update => form_tag_id( f.object_name, :search_results), :url => { :controller => 'publications', :action => 'autocomplete_for_author', :object_name => form_object_id(f.object_name) }, :with => 'q' ) %> - </p> - <%# link_to_function l(:label_author_is_me), "update_author_info(this," + User.current.get_author_info.to_json + ")", :id => "add_me_as_author" %> - - <p> - <%= f.select :search_results, options_for_select(@author_options), {}, {:size => 5, - :onChange => remote_function( :url => { :controller => :publications, :action => :get_user_info, :object_id => form_object_id(f.object_name) }, :with => "'value=' + - value" )} %> - </p> - - <p style="margin-bottom: -2.5em; padding-bottom; 0"><label><%= l(:identify_author_question) %></label></p> - <p class="author_identify"> - <label class='inline'><%= radio_button_tag(:identify_author, "yes", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_yes ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_yes) %> </label><br /> - - <label class='inline'><%= radio_button_tag(:identify_author, "correct", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_corrections ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_correct) %> </label><br /> - - <label class='inline'><%= radio_button_tag(:identify_author, "no", true, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_no ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_no) %> </label><br /> - </p> - </div> - - <div class='author_edit' id="<%= form_tag_id( f.object_name, :edit_author_info ) %>"> - <p> - <%= f.text_field :name_on_paper, {:class => ("readonly" unless params[:action] == "new") } %></p> - <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_name_on_paper") %></p> - <p><%= f.text_field :institution, {:class => ("readonly" unless params[:action] == "new") } %></p> - <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_institution") %></p> - <p><%= f.text_field :email, {:class => ("readonly" unless params[:action] == "new") } %></p> - <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_email") %></p> - </p> - </div> - - - <div class="box" id="<%= form_tag_id( f.object_name, :show_author_info ) %>" style="display: none"> - - </div> - - <p> - - <%- if params[:action] == 'new' -%> - <%= button_to_function l(:label_save_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %> - <%- else -%> - <%= button_to_function l(:label_edit_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %> - <%- end -%> - - - <%= link_to_remove_fields l("remove_author"), f %> - </p> -</div> -<br/>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,58 @@ +<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> + + +<div id="authors" class="fields"> +<!-- <h4><%= l("label_author_1") %></h4> --> + + <div id="<%= form_tag_id( f.object_name, :search_author ) %>" style=<%= "display:none;" unless params[:action] == "new" %> > + <p> + <%= f.text_field :search_name, :size => 25 %> + <%= observe_field( form_tag_id(f.object_name, :search_name), :frequency => 0.5, :update => form_tag_id( f.object_name, :search_results), :url => { :controller => 'publications', :action => 'autocomplete_for_author', :object_name => form_object_id(f.object_name) }, :with => 'q' ) %> + </p> + <%# link_to_function l(:label_author_is_me), "update_author_info(this," + User.current.get_author_info.to_json + ")", :id => "add_me_as_author" %> + + <p> + <%= f.select :search_results, options_for_select(@author_options), {}, {:size => 5, + :onChange => remote_function( :url => { :controller => :publications, :action => :get_user_info, :object_id => form_object_id(f.object_name) }, :with => "'value=' + + value" )} %> + </p> + + <p style="margin-bottom: -2.5em; padding-bottom; 0"><label><%= l(:identify_author_question) %></label></p> + <p class="author_identify"> + <label class='inline'><%= radio_button_tag(:identify_author, "yes", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_yes ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_yes) %> </label><br /> + + <label class='inline'><%= radio_button_tag(:identify_author, "correct", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_corrections ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_correct) %> </label><br /> + + <label class='inline'><%= radio_button_tag(:identify_author, "no", true, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_no ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_no) %> </label><br /> + </p> + </div> + + <div class='author_edit' id="<%= form_tag_id( f.object_name, :edit_author_info ) %>"> + <p> + <%= f.text_field :name_on_paper, {:class => ("readonly" unless params[:action] == "new") } %></p> + <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_name_on_paper") %></p> + <p><%= f.text_field :institution, {:class => ("readonly" unless params[:action] == "new") } %></p> + <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_institution") %></p> + <p><%= f.text_field :email, {:class => ("readonly" unless params[:action] == "new") } %></p> + <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_email") %></p> + </p> + </div> + + + <div class="box" id="<%= form_tag_id( f.object_name, :show_author_info ) %>" style="display: none"> + + </div> + + <p> + + <%- if params[:action] == 'new' -%> + <%= button_to_function l(:label_save_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %> + <%- else -%> + <%= button_to_function l(:label_edit_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %> + <%- end -%> + + + <%= link_to_remove_fields l("remove_author"), f %> + </p> +</div> +<br/>
--- a/vendor/plugins/redmine_bibliography/app/views/publications/autocomplete_for_author.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -<% if params[:q] && params[:q].length > 1 %> - <%= choose_author_link @object_name, @results %> -<% end %> -
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/autocomplete_for_author.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,4 @@ +<% if params[:q] && params[:q].length > 1 %> + <%= choose_author_link @object_name, @results %> +<% end %> +
--- a/vendor/plugins/redmine_bibliography/app/views/publications/autocomplete_for_project.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -<% if params[:q] && params[:q].length > 1 %> - <%= projects_check_box_tags 'publication[project_ids][]', @projects %> -<% end %>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/autocomplete_for_project.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,3 @@ +<% if params[:q] && params[:q].length > 1 %> + <%= projects_check_box_tags 'publication[project_ids][]', @projects %> +<% end %>
--- a/vendor/plugins/redmine_bibliography/app/views/settings/_bibliography.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -<p><label>Menu caption</label> -<%= text_field_tag 'settings[menu]', @settings['menu'], :size => 30 %> -<br /><em>Clear this field if you don't want to add a tab to the project menu</em></p>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_bibliography/app/views/settings/_bibliography.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,3 @@ +<p><label>Menu caption</label> +<%= text_field_tag 'settings[menu]', @settings['menu'], :size => 30 %> +<br /><em>Clear this field if you don't want to add a tab to the project menu</em></p>
--- a/vendor/plugins/redmine_bibliography/app/views/users/show.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,104 +0,0 @@ -<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> - -<div class="contextual"> -<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %> -</div> - -<h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2> - -<div class="splitcontentleft"> -<ul> - <% unless @user.pref.hide_mail %> - <li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li> - <% end %> - <% @user.visible_custom_field_values.each do |custom_value| %> - <% if !custom_value.value.blank? %> - <li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li> - <% end %> - <% end %> - <li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li> - <% unless @user.last_login_on.nil? %> - <li><%=l(:field_last_login_on)%>: <%= format_date(@user.last_login_on) %></li> - <% end %> -</ul> - -<h3><%=l(:label_ssamr_description)%></h3> -<%= textilizable @description %> - -<h3><%=l(:label_ssamr_institution)%></h3> -<p><%= h @institution_name %></p> - - -<% unless @memberships.empty? %> -<h3><%=l(:label_project_plural)%></h3> -<ul> -<% for membership in @memberships %> - <li><%= link_to_project(membership.project) %> - (<%=h membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li> -<% end %> -</ul> -<% end %> -<%= call_hook :view_account_left_bottom, :user => @user %> -</div> - -<div class="splitcontentright"> - - <% if @user.author %> - <div id="bibliography"> - <% @publications = Publication.all(:include => :authors, :conditions => "authors.id = #{@user.author.id}") %> - - <h3><%=l(:publications) %> <%= "(" + @publications.count.to_s + ")" %> </h3> - - <% @publications.each do |publication|%> - <dt> - <span class="authors"> - <%= publication.authorships.map { |a| h a.name_on_paper }.join(', ') %><% if !publication.authorships.empty? %>.<% end %> - </span> - <span class="title"><%= link_to publication.title, :controller => 'publications', :action => 'show', :id => publication %></span> - <% if publication.bibtex_entry.year.to_s != "" %> - <span class="year"> - (<%= publication.bibtex_entry.year %>) - </span> - <% end %> - </dt> - <dd> - </dd> - <% end %> - </div> - <% end %> - - -<% unless @events_by_day.empty? %> -<h3><%= link_to l(:label_activity), :controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %></h3> - -<p> -<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %> -</p> - -<div id="activity"> -<% @events_by_day.keys.sort.reverse.each do |day| %> -<h4><%= format_activity_day(day) %></h4> -<dl> -<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%> - <dt class="<%= e.event_type %>"> - <span class="time"><%= format_time(e.event_datetime, false) %></span> - <%= content_tag('span', h(e.project), :class => 'project') %> - <%= link_to format_activity_title(e.event_title), e.event_url %></dt> - <dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd> -<% end -%> -</dl> -<% end -%> -</div> - -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :key => User.current.rss_key} %> -<% end %> - -<% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :user_id => @user, :format => :atom, :key => User.current.rss_key) %> -<% end %> -<% end %> -<%= call_hook :view_account_right_bottom, :user => @user %> -</div> - -<% html_title @user.name %>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_bibliography/app/views/users/show.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,104 @@ +<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> + +<div class="contextual"> +<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %> +</div> + +<h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2> + +<div class="splitcontentleft"> +<ul> + <% unless @user.pref.hide_mail %> + <li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li> + <% end %> + <% @user.visible_custom_field_values.each do |custom_value| %> + <% if !custom_value.value.blank? %> + <li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li> + <% end %> + <% end %> + <li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li> + <% unless @user.last_login_on.nil? %> + <li><%=l(:field_last_login_on)%>: <%= format_date(@user.last_login_on) %></li> + <% end %> +</ul> + +<h3><%=l(:label_ssamr_description)%></h3> +<%= textilizable @description %> + +<h3><%=l(:label_ssamr_institution)%></h3> +<p><%= h @institution_name %></p> + + +<% unless @memberships.empty? %> +<h3><%=l(:label_project_plural)%></h3> +<ul> +<% for membership in @memberships %> + <li><%= link_to_project(membership.project) %> + (<%=h membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li> +<% end %> +</ul> +<% end %> +<%= call_hook :view_account_left_bottom, :user => @user %> +</div> + +<div class="splitcontentright"> + + <% if @user.author %> + <div id="bibliography"> + <% @publications = Publication.all(:include => :authors, :conditions => "authors.id = #{@user.author.id}") %> + + <h3><%=l(:publications) %> <%= "(" + @publications.count.to_s + ")" %> </h3> + + <% @publications.each do |publication|%> + <dt> + <span class="authors"> + <%= publication.authorships.map { |a| h a.name_on_paper }.join(', ') %><% if !publication.authorships.empty? %>.<% end %> + </span> + <span class="title"><%= link_to publication.title, :controller => 'publications', :action => 'show', :id => publication %></span> + <% if publication.bibtex_entry.year.to_s != "" %> + <span class="year"> + (<%= publication.bibtex_entry.year %>) + </span> + <% end %> + </dt> + <dd> + </dd> + <% end %> + </div> + <% end %> + + +<% unless @events_by_day.empty? %> +<h3><%= link_to l(:label_activity), :controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %></h3> + +<p> +<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %> +</p> + +<div id="activity"> +<% @events_by_day.keys.sort.reverse.each do |day| %> +<h4><%= format_activity_day(day) %></h4> +<dl> +<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%> + <dt class="<%= e.event_type %>"> + <span class="time"><%= format_time(e.event_datetime, false) %></span> + <%= content_tag('span', h(e.project), :class => 'project') %> + <%= link_to format_activity_title(e.event_title), e.event_url %></dt> + <dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd> +<% end -%> +</dl> +<% end -%> +</div> + +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :key => User.current.rss_key} %> +<% end %> + +<% content_for :header_tags do %> + <%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :user_id => @user, :format => :atom, :key => User.current.rss_key) %> +<% end %> +<% end %> +<%= call_hook :view_account_right_bottom, :user => @user %> +</div> + +<% html_title @user.name %>
--- a/vendor/plugins/redmine_checkout/app/views/projects/settings/_repository_checkout.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -<p><%= form.select(:checkout_overwrite, [ - [l(:general_text_Yes), "1"], - [l(:general_text_No), "0"] - ], - {}, - :onchange => <<-EOF - Effect.toggle($('checkout_settings'), 'slide', {duration:0.2}); - EOF - )%></p> - -<div id="checkout_settings" <%= 'style="display:none;"' unless form.object.checkout_overwrite? %>><fieldset> - <legend><%=l :label_checkout %></legend> - - <p><%= form.text_area :checkout_description, :cols => 60, :rows => 5, :class => 'wiki-edit', :label => :field_description %></p> - <%= wikitoolbar_for 'repository_checkout_description' %> - - <% if form.object.scm_name == 'Subversion' %> - <p><%= form.select :checkout_display_login,[ - [l(:label_display_login_none), ''], - [l(:label_display_login_username), 'username'], - [l(:label_display_login_password), 'password'] - ], - :label => :setting_checkout_display_login %></p> - <% end %> - - <p><%= form.check_box :checkout_display_command %></p> - - <% javascript_tag do %> - protocolForm = new Subform( - '<%= escape_javascript(render(:partial => "projects/settings/repository_checkout_protocol", :locals => {:protocol => Checkout::Protocol.new({:protocol => form.object.scm_name, :append_path => form.object.allow_subtree_checkout? ? 1: 0, :repository => form.object})})) %>', - <%= form.object.checkout_protocols.length %>, - 'checkout_protocol_table' - ); - <% end %> - <p><label><%=l :label_protocol_plural %></label><%=l :help_repository_checkout_protocols %></p> - <%= hidden_field_tag 'repository[checkout_protocols][-1][protocol]', 'empty' %> - <table class="list checkout_protocol_table"> - <thead><tr> - <th class="protocol_protocol" ><%= l(:setting_protocol)%></th> - <th class="protocol_command" ><%= l(:setting_checkout_command)%></th> - <th class="protocol_fixed_url" ><%= l(:setting_checkout_fixed_url) %></th> - <th class="protocol_access" ><%= l(:label_permissions) %></th> - <th class="protocol_append_path"><%= l(:label_append_path) %></th> - <th class="protocol_is_default" ><%= l(:label_default) %></th> - <th class="protocol_delete" ></th> - </tr></thead> - <tbody id="checkout_protocol_table"> - <% form.object.checkout_protocols.each_with_index do |protocol, index| %> - <%= render :partial => 'projects/settings/repository_checkout_protocol', :locals => {:protocol => protocol, :index => index, :classes => cycle('odd', 'even')} %> - <% end %> - </tbody> - </table> - <div style="text-align: right"><%= link_to_function l(:button_add_protocol), "protocolForm.add()", {:class => "icon icon-add"} %></div> -</fieldset></div>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_checkout/app/views/projects/settings/_repository_checkout.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,54 @@ +<p><%= form.select(:checkout_overwrite, [ + [l(:general_text_Yes), "1"], + [l(:general_text_No), "0"] + ], + {}, + :onchange => <<-EOF + Effect.toggle($('checkout_settings'), 'slide', {duration:0.2}); + EOF + )%></p> + +<div id="checkout_settings" <%= 'style="display:none;"' unless form.object.checkout_overwrite? %>><fieldset> + <legend><%=l :label_checkout %></legend> + + <p><%= form.text_area :checkout_description, :cols => 60, :rows => 5, :class => 'wiki-edit', :label => :field_description %></p> + <%= wikitoolbar_for 'repository_checkout_description' %> + + <% if form.object.scm_name == 'Subversion' %> + <p><%= form.select :checkout_display_login,[ + [l(:label_display_login_none), ''], + [l(:label_display_login_username), 'username'], + [l(:label_display_login_password), 'password'] + ], + :label => :setting_checkout_display_login %></p> + <% end %> + + <p><%= form.check_box :checkout_display_command %></p> + + <% javascript_tag do %> + protocolForm = new Subform( + '<%= escape_javascript(render(:partial => "projects/settings/repository_checkout_protocol", :locals => {:protocol => Checkout::Protocol.new({:protocol => form.object.scm_name, :append_path => form.object.allow_subtree_checkout? ? 1: 0, :repository => form.object})})) %>', + <%= form.object.checkout_protocols.length %>, + 'checkout_protocol_table' + ); + <% end %> + <p><label><%=l :label_protocol_plural %></label><%=l :help_repository_checkout_protocols %></p> + <%= hidden_field_tag 'repository[checkout_protocols][-1][protocol]', 'empty' %> + <table class="list checkout_protocol_table"> + <thead><tr> + <th class="protocol_protocol" ><%= l(:setting_protocol)%></th> + <th class="protocol_command" ><%= l(:setting_checkout_command)%></th> + <th class="protocol_fixed_url" ><%= l(:setting_checkout_fixed_url) %></th> + <th class="protocol_access" ><%= l(:label_permissions) %></th> + <th class="protocol_append_path"><%= l(:label_append_path) %></th> + <th class="protocol_is_default" ><%= l(:label_default) %></th> + <th class="protocol_delete" ></th> + </tr></thead> + <tbody id="checkout_protocol_table"> + <% form.object.checkout_protocols.each_with_index do |protocol, index| %> + <%= render :partial => 'projects/settings/repository_checkout_protocol', :locals => {:protocol => protocol, :index => index, :classes => cycle('odd', 'even')} %> + <% end %> + </tbody> + </table> + <div style="text-align: right"><%= link_to_function l(:button_add_protocol), "protocolForm.add()", {:class => "icon icon-add"} %></div> +</fieldset></div>
--- a/vendor/plugins/redmine_checkout/app/views/projects/settings/_repository_checkout_protocol.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -<% - index ||= "--INDEX--" - classes ||= "" - - protocol = Checkout::Protocol.new(protocol) unless protocol.is_a? Checkout::Protocol -%> -<tr id="<%= "checkout_protocols_#{index}" %>" class="<%= classes %>" <%= 'style="display:none"' if index == '--INDEX--' %>> - <td class="protocol_protocol"><%= text_field_tag "repository[checkout_protocols][#{index}][protocol]", protocol.protocol, :size => 10 %></td> - <td class="protocol_command"><%= text_field_tag "repository[checkout_protocols][#{index}][command]", protocol.command, :size => 15 %></td> - <td class="protocol_fixed_url"><%= text_field_tag "repository[checkout_protocols][#{index}][fixed_url]", protocol.fixed_url, :size => 60 %></td> - <td class="protocol_access"><%= select_tag "repository[checkout_protocols][#{index}][access]", options_for_select([ - [l(:label_access_read_write), 'read+write'], - [l(:label_access_read_only), 'read-only'], - [l(:label_access_permission), 'permission']], protocol.access) %></td> - <td class="protocol_append_path"><%= check_box_tag "repository[checkout_protocols][#{index}][append_path]", 1, protocol.append_path? %></td> - <td class="protocol_is_default"><%= check_box_tag "repository[checkout_protocols][#{index}][is_default]", 1, protocol.default? %></td> - <td class="protocol_delete"><%= image_to_function 'delete.png', "var e=$('checkout_protocols_#{index}');var parent=e.up(\"tbody\");e.remove();recalculate_even_odd(parent);return false" %></td> -</tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_checkout/app/views/projects/settings/_repository_checkout_protocol.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,18 @@ +<% + index ||= "--INDEX--" + classes ||= "" + + protocol = Checkout::Protocol.new(protocol) unless protocol.is_a? Checkout::Protocol +%> +<tr id="<%= "checkout_protocols_#{index}" %>" class="<%= classes %>" <%= 'style="display:none"' if index == '--INDEX--' %>> + <td class="protocol_protocol"><%= text_field_tag "repository[checkout_protocols][#{index}][protocol]", protocol.protocol, :size => 10 %></td> + <td class="protocol_command"><%= text_field_tag "repository[checkout_protocols][#{index}][command]", protocol.command, :size => 15 %></td> + <td class="protocol_fixed_url"><%= text_field_tag "repository[checkout_protocols][#{index}][fixed_url]", protocol.fixed_url, :size => 60 %></td> + <td class="protocol_access"><%= select_tag "repository[checkout_protocols][#{index}][access]", options_for_select([ + [l(:label_access_read_write), 'read+write'], + [l(:label_access_read_only), 'read-only'], + [l(:label_access_permission), 'permission']], protocol.access) %></td> + <td class="protocol_append_path"><%= check_box_tag "repository[checkout_protocols][#{index}][append_path]", 1, protocol.append_path? %></td> + <td class="protocol_is_default"><%= check_box_tag "repository[checkout_protocols][#{index}][is_default]", 1, protocol.default? %></td> + <td class="protocol_delete"><%= image_to_function 'delete.png', "var e=$('checkout_protocols_#{index}');var parent=e.up(\"tbody\");e.remove();recalculate_even_odd(parent);return false" %></td> +</tr>
--- a/vendor/plugins/redmine_checkout/app/views/redmine_checkout_hooks/_view_repositories_show_contextual.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -<div class="repository-info"> - <% if repository.checkout_description.present? %> - <div class="wiki<%= ' bottomline' if protocols.present? %>"><%= textilizable repository.checkout_description %></div> - <% end %> - <% if protocols.present? %> - <div id="checkout_box"> - <ul id="checkout_protocols"> - <% protocols.each do |p| -%> - <li> - <a <%= 'class="selected"' if p == default_protocol %> id="checkout_protocol_<%= p.protocol.to_s.underscore %>" data-permission="<%= p.access_rw(User.current) %>" href="<%= URI.escape p.url(checkout_path) %>"><%=h p.protocol %></a> - </li> - <% end -%> - </ul> - <%= text_field_tag :checkout_url, h(default_protocol.full_command(checkout_path)), :readonly => true %> - <%- if Setting.checkout_use_zero_clipboard? %> - <div id="clipboard_container" title="<%= l(:label_copy_to_clipboard) %>" style="display: none;"> - <div id="clipboard_button"><%= image_tag 'paste.png', :plugin => 'redmine_checkout' %></div> - </div> - <% end -%> - - <p> - <% if User.current.logged? %> - <% if repository.is_external? %> - <%=l :label_access_type_all, :type => l(:label_access_read_only) %> - <% else %> - <% if default_protocol %><%=l :label_access_type, :type => l(default_protocol.access_label(User.current)) %><% end %> - <% end %> - <% else %> - - <% end %> - </p> - - <% javascript_tag do %> - var checkout_access = $H({<%= protocols.inject([]){|r,p| r << "'checkout_protocol_#{p.protocol.to_s.underscore}': '#{l(p.access_label(User.current))}'"}.join(', ') %>}); - var checkout_commands = $H({<%= protocols.inject([]){|r,p| r << "'checkout_protocol_#{p.protocol.to_s.underscore}': '#{escape_javascript(p.full_command(checkout_path))}'"}.join(', ') %>}); - <%- if Setting.checkout_use_zero_clipboard? %>ZeroClipboard.setMoviePath( '<%= image_path('ZeroClipboard.swf', :plugin => 'redmine_checkout') %>' );<% end %> - <% end %> - </div> - <% end%> - <% if repository.is_external? %> - <div style="clear: left"> - </div> - <p class="topline" style="padding-top: 1em"><%= l(:text_repository_external, :location => repository.external_url) %></p> - <% end %> -</div> -<div style="clear: left"></div> - -<% content_for :header_tags do %> - <%= stylesheet_link_tag 'checkout', :plugin => 'redmine_checkout' %> - <%= javascript_include_tag 'checkout', :plugin => 'redmine_checkout' %> - <%= (javascript_include_tag 'ZeroClipboard', :plugin => 'redmine_checkout') if Setting.checkout_use_zero_clipboard? %> -<% end %>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_checkout/app/views/redmine_checkout_hooks/_view_repositories_show_contextual.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,52 @@ +<div class="repository-info"> + <% if repository.checkout_description.present? %> + <div class="wiki<%= ' bottomline' if protocols.present? %>"><%= textilizable repository.checkout_description %></div> + <% end %> + <% if protocols.present? %> + <div id="checkout_box"> + <ul id="checkout_protocols"> + <% protocols.each do |p| -%> + <li> + <a <%= 'class="selected"' if p == default_protocol %> id="checkout_protocol_<%= p.protocol.to_s.underscore %>" data-permission="<%= p.access_rw(User.current) %>" href="<%= URI.escape p.url(checkout_path) %>"><%=h p.protocol %></a> + </li> + <% end -%> + </ul> + <%= text_field_tag :checkout_url, h(default_protocol.full_command(checkout_path)), :readonly => true %> + <%- if Setting.checkout_use_zero_clipboard? %> + <div id="clipboard_container" title="<%= l(:label_copy_to_clipboard) %>" style="display: none;"> + <div id="clipboard_button"><%= image_tag 'paste.png', :plugin => 'redmine_checkout' %></div> + </div> + <% end -%> + + <p> + <% if User.current.logged? %> + <% if repository.is_external? %> + <%=l :label_access_type_all, :type => l(:label_access_read_only) %> + <% else %> + <% if default_protocol %><%=l :label_access_type, :type => l(default_protocol.access_label(User.current)) %><% end %> + <% end %> + <% else %> + + <% end %> + </p> + + <% javascript_tag do %> + var checkout_access = $H({<%= protocols.inject([]){|r,p| r << "'checkout_protocol_#{p.protocol.to_s.underscore}': '#{l(p.access_label(User.current))}'"}.join(', ') %>}); + var checkout_commands = $H({<%= protocols.inject([]){|r,p| r << "'checkout_protocol_#{p.protocol.to_s.underscore}': '#{escape_javascript(p.full_command(checkout_path))}'"}.join(', ') %>}); + <%- if Setting.checkout_use_zero_clipboard? %>ZeroClipboard.setMoviePath( '<%= image_path('ZeroClipboard.swf', :plugin => 'redmine_checkout') %>' );<% end %> + <% end %> + </div> + <% end%> + <% if repository.is_external? %> + <div style="clear: left"> + </div> + <p class="topline" style="padding-top: 1em"><%= l(:text_repository_external, :location => repository.external_url) %></p> + <% end %> +</div> +<div style="clear: left"></div> + +<% content_for :header_tags do %> + <%= stylesheet_link_tag 'checkout', :plugin => 'redmine_checkout' %> + <%= javascript_include_tag 'checkout', :plugin => 'redmine_checkout' %> + <%= (javascript_include_tag 'ZeroClipboard', :plugin => 'redmine_checkout') if Setting.checkout_use_zero_clipboard? %> +<% end %>
--- a/vendor/plugins/redmine_checkout/app/views/settings/_checkout.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -<% form_tag({:action => 'edit', :tab => 'checkout'}) do %> - -<% javascript_tag do %> -protocolForms = $H(); - -document.observe("dom:loaded", function() { - $('tab-content-checkout').select('fieldset.collapsed').each(function(e){ - e.down('div').hide(); - }); - <% - CheckoutHelper.supported_scm.select{|scm| Setting.enabled_scm.include?(scm)}.each do |scm| - next if Setting.send("checkout_overwrite_description_#{scm}?") - -%> - $('settings_checkout_description_<%= scm %>').up('div').up('div').hide(); - <%- end %> -}); -<% end %> - - -<div class="box tabular settings"> -<p><%= setting_check_box :checkout_display_checkout_info %></p> - -<p><%= setting_text_area :checkout_description_Abstract, :cols => 60, :rows => 5, :class => 'wiki-edit', :label => :field_description %></p> -<%= wikitoolbar_for 'settings_checkout_description_Abstract' %> - -<p><%= setting_check_box :checkout_use_zero_clipboard %></p> - -<% CheckoutHelper.supported_scm.select{|scm| Setting.enabled_scm.include?(scm)}.each do |scm| -%> -<fieldset class="collapsible collapsed"> - <legend onclick="toggleFieldset(this);"><%= "Repository::#{scm}".constantize.scm_name %></legend> - <div><%= render :partial => 'checkout_scm', :locals => {:scm => scm} %></div> -</fieldset> -<%- end %> - -</div> - -<%= submit_tag l(:button_save) %> -<%- end %> - -<% content_for :header_tags do %> - <%= javascript_include_tag 'subform', :plugin => 'redmine_checkout' %> - <%= stylesheet_link_tag 'checkout', :plugin => 'redmine_checkout' %> -<% end %>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_checkout/app/views/settings/_checkout.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,43 @@ +<% form_tag({:action => 'edit', :tab => 'checkout'}) do %> + +<% javascript_tag do %> +protocolForms = $H(); + +document.observe("dom:loaded", function() { + $('tab-content-checkout').select('fieldset.collapsed').each(function(e){ + e.down('div').hide(); + }); + <% + CheckoutHelper.supported_scm.select{|scm| Setting.enabled_scm.include?(scm)}.each do |scm| + next if Setting.send("checkout_overwrite_description_#{scm}?") + -%> + $('settings_checkout_description_<%= scm %>').up('div').up('div').hide(); + <%- end %> +}); +<% end %> + + +<div class="box tabular settings"> +<p><%= setting_check_box :checkout_display_checkout_info %></p> + +<p><%= setting_text_area :checkout_description_Abstract, :cols => 60, :rows => 5, :class => 'wiki-edit', :label => :field_description %></p> +<%= wikitoolbar_for 'settings_checkout_description_Abstract' %> + +<p><%= setting_check_box :checkout_use_zero_clipboard %></p> + +<% CheckoutHelper.supported_scm.select{|scm| Setting.enabled_scm.include?(scm)}.each do |scm| -%> +<fieldset class="collapsible collapsed"> + <legend onclick="toggleFieldset(this);"><%= "Repository::#{scm}".constantize.scm_name %></legend> + <div><%= render :partial => 'checkout_scm', :locals => {:scm => scm} %></div> +</fieldset> +<%- end %> + +</div> + +<%= submit_tag l(:button_save) %> +<%- end %> + +<% content_for :header_tags do %> + <%= javascript_include_tag 'subform', :plugin => 'redmine_checkout' %> + <%= stylesheet_link_tag 'checkout', :plugin => 'redmine_checkout' %> +<% end %>
--- a/vendor/plugins/redmine_checkout/app/views/settings/_checkout_protocol.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -<% - index ||= "--INDEX--" - classes ||= "" - - protocol = Checkout::Protocol.new(protocol) unless protocol.is_a? Checkout::Protocol -%> -<tr id="<%= "checkout_protocols_#{scm}_#{index}" %>" class="<%= classes %>" <%= 'style="display:none"' if index == '--INDEX--' %>> - <td class="protocol_protocol" ><%= text_field_tag "settings[checkout_protocols_#{scm}][#{index}][protocol]", protocol.protocol, :size => 10 %></td> - <td class="protocol_command" ><%= text_field_tag "settings[checkout_protocols_#{scm}][#{index}][command]", protocol.command, :size => 15 %></td> - <td class="protocol_regex" ><%= text_field_tag "settings[checkout_protocols_#{scm}][#{index}][regex]", protocol.regex, :size => 30 %></td> - <td class="protocol_regex_replacement"><%= text_field_tag "settings[checkout_protocols_#{scm}][#{index}][regex_replacement]", protocol.regex_replacement, :size => 30 %></td> - <td class="protocol_access" ><%= select_tag "settings[checkout_protocols_#{scm}][#{index}][access]", options_for_select([ - [l(:label_access_read_write), 'read+write'], - [l(:label_access_read_only), 'read-only'], - [l(:label_access_permission), 'permission']], protocol.access) %></td> - <td class="protocol_append_path"><%= check_box_tag "settings[checkout_protocols_#{scm}][#{index}][append_path]", 1, protocol.append_path? %></td> - <td class="protocol_is_default"><%= check_box_tag "settings[checkout_protocols_#{scm}][#{index}][is_default]", 1, protocol.default? %></td> - <td class="protocol_delete"><%= image_to_function 'delete.png', "var e=$('checkout_protocols_#{scm}_#{index}');var parent=e.up(\"tbody\");e.remove();recalculate_even_odd(parent);return false" %></td> -</tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_checkout/app/views/settings/_checkout_protocol.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,19 @@ +<% + index ||= "--INDEX--" + classes ||= "" + + protocol = Checkout::Protocol.new(protocol) unless protocol.is_a? Checkout::Protocol +%> +<tr id="<%= "checkout_protocols_#{scm}_#{index}" %>" class="<%= classes %>" <%= 'style="display:none"' if index == '--INDEX--' %>> + <td class="protocol_protocol" ><%= text_field_tag "settings[checkout_protocols_#{scm}][#{index}][protocol]", protocol.protocol, :size => 10 %></td> + <td class="protocol_command" ><%= text_field_tag "settings[checkout_protocols_#{scm}][#{index}][command]", protocol.command, :size => 15 %></td> + <td class="protocol_regex" ><%= text_field_tag "settings[checkout_protocols_#{scm}][#{index}][regex]", protocol.regex, :size => 30 %></td> + <td class="protocol_regex_replacement"><%= text_field_tag "settings[checkout_protocols_#{scm}][#{index}][regex_replacement]", protocol.regex_replacement, :size => 30 %></td> + <td class="protocol_access" ><%= select_tag "settings[checkout_protocols_#{scm}][#{index}][access]", options_for_select([ + [l(:label_access_read_write), 'read+write'], + [l(:label_access_read_only), 'read-only'], + [l(:label_access_permission), 'permission']], protocol.access) %></td> + <td class="protocol_append_path"><%= check_box_tag "settings[checkout_protocols_#{scm}][#{index}][append_path]", 1, protocol.append_path? %></td> + <td class="protocol_is_default"><%= check_box_tag "settings[checkout_protocols_#{scm}][#{index}][is_default]", 1, protocol.default? %></td> + <td class="protocol_delete"><%= image_to_function 'delete.png', "var e=$('checkout_protocols_#{scm}_#{index}');var parent=e.up(\"tbody\");e.remove();recalculate_even_odd(parent);return false" %></td> +</tr>
--- a/vendor/plugins/redmine_checkout/app/views/settings/_checkout_scm.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +0,0 @@ -<div> - <p><%= setting_check_box "checkout_overwrite_description_#{scm}", :label => :setting_checkout_overwrite_description, :onclick => <<-EOF - Effect.toggle($('settings_checkout_description_#{scm}').up("div").up("div"), 'slide', {duration:0.2}); - EOF - %></p> - - <div> - <p><%= setting_text_area "checkout_description_#{scm}", :cols => 60, :rows => 5, :class => 'wiki-edit', :label => :field_description %></p> - <%= wikitoolbar_for "settings_checkout_description_#{scm}" %> - </div> - - <% if scm == 'Subversion' %> - <p><%= setting_select "checkout_display_login",[ - [l(:label_display_login_username), 'username'], - [l(:label_display_login_password), 'password'] - ], - :blank => :label_display_login_none %></p> - <% end %> - - <p><%= setting_check_box "checkout_display_command_#{scm}", :label => :field_checkout_display_command %></p> - - <% javascript_tag do %> - <% repo = "Repository::#{scm}".constantize %> - var subform = new Subform('<%= escape_javascript(render(:partial => "checkout_protocol", :locals => {:protocol => Checkout::Protocol.new({:protocol => repo.scm_name, :append_path => (repo.allow_subtree_checkout? ? '1' : '0'), :command => repo.checkout_default_command}), :scm => scm})) %>',<%= Setting.send("checkout_protocols_#{scm}").length %>,'settings_checkout_protocols_<%= scm %>'); - protocolForms.set('<%= scm %>', subform); - <% end %> - <p><label><%=l :label_protocol_plural %></label><%=l :help_checkout_protocols %></p> - <table class="list checkout_protocol_table"> - <thead><tr> - <th class="protocol_protocol" ><%= l(:setting_protocol)%></th> - <th class="protocol_command" ><%= l(:setting_checkout_command)%></th> - <th class="protocol_regex" ><%= l(:setting_checkout_url_regex) %></th> - <th class="protocol_regex_replacement"><%= l(:setting_checkout_url_regex_replacement) %></th> - <th class="protocol_access" ><%= l(:label_permissions) %></th> - <th class="protocol_append_path" ><%= l(:label_append_path) %></th> - <th class="protocol_is_default" ><%= l(:label_default) %></th> - <th class="protocol_delete" ></th> - </tr></thead> - <tbody id="settings_checkout_protocols_<%= scm %>"> - <% Setting.send("checkout_protocols_#{scm}").each_with_index do |protocol, index| %> - <%= render :partial => 'checkout_protocol', :locals => {:protocol => Checkout::Protocol.new(protocol), :scm => scm, :index => index, :classes => cycle('odd', 'even')} %> - <% end %> - </tbody> - </table> - <div style="text-align: right"><%= link_to_function l(:button_add_protocol), "protocolForms.get('#{scm}').add()", {:class => "icon icon-add"} %></div> -</div>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_checkout/app/views/settings/_checkout_scm.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,46 @@ +<div> + <p><%= setting_check_box "checkout_overwrite_description_#{scm}", :label => :setting_checkout_overwrite_description, :onclick => <<-EOF + Effect.toggle($('settings_checkout_description_#{scm}').up("div").up("div"), 'slide', {duration:0.2}); + EOF + %></p> + + <div> + <p><%= setting_text_area "checkout_description_#{scm}", :cols => 60, :rows => 5, :class => 'wiki-edit', :label => :field_description %></p> + <%= wikitoolbar_for "settings_checkout_description_#{scm}" %> + </div> + + <% if scm == 'Subversion' %> + <p><%= setting_select "checkout_display_login",[ + [l(:label_display_login_username), 'username'], + [l(:label_display_login_password), 'password'] + ], + :blank => :label_display_login_none %></p> + <% end %> + + <p><%= setting_check_box "checkout_display_command_#{scm}", :label => :field_checkout_display_command %></p> + + <% javascript_tag do %> + <% repo = "Repository::#{scm}".constantize %> + var subform = new Subform('<%= escape_javascript(render(:partial => "checkout_protocol", :locals => {:protocol => Checkout::Protocol.new({:protocol => repo.scm_name, :append_path => (repo.allow_subtree_checkout? ? '1' : '0'), :command => repo.checkout_default_command}), :scm => scm})) %>',<%= Setting.send("checkout_protocols_#{scm}").length %>,'settings_checkout_protocols_<%= scm %>'); + protocolForms.set('<%= scm %>', subform); + <% end %> + <p><label><%=l :label_protocol_plural %></label><%=l :help_checkout_protocols %></p> + <table class="list checkout_protocol_table"> + <thead><tr> + <th class="protocol_protocol" ><%= l(:setting_protocol)%></th> + <th class="protocol_command" ><%= l(:setting_checkout_command)%></th> + <th class="protocol_regex" ><%= l(:setting_checkout_url_regex) %></th> + <th class="protocol_regex_replacement"><%= l(:setting_checkout_url_regex_replacement) %></th> + <th class="protocol_access" ><%= l(:label_permissions) %></th> + <th class="protocol_append_path" ><%= l(:label_append_path) %></th> + <th class="protocol_is_default" ><%= l(:label_default) %></th> + <th class="protocol_delete" ></th> + </tr></thead> + <tbody id="settings_checkout_protocols_<%= scm %>"> + <% Setting.send("checkout_protocols_#{scm}").each_with_index do |protocol, index| %> + <%= render :partial => 'checkout_protocol', :locals => {:protocol => Checkout::Protocol.new(protocol), :scm => scm, :index => index, :classes => cycle('odd', 'even')} %> + <% end %> + </tbody> + </table> + <div style="text-align: right"><%= link_to_function l(:button_add_protocol), "protocolForms.get('#{scm}').add()", {:class => "icon icon-add"} %></div> +</div>
--- a/vendor/plugins/redmine_checkout/app/views/settings/_redmine_checkout.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -<%=l(:help_moved_settings, :link => link_to(l(:label_settings_location), {:controller => 'settings', :action => 'index', :tab => 'checkout'})) %>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_checkout/app/views/settings/_redmine_checkout.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,1 @@ +<%=l(:help_moved_settings, :link => link_to(l(:label_settings_location), {:controller => 'settings', :action => 'index', :tab => 'checkout'})) %>
--- a/vendor/plugins/redmine_tags/app/views/projects/_filter_tags.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -<p class='tag'> - <% fields_for @project, :builder => TabularFormBuilder do |f| -%> - <div> - <p id="project_tags"> - <%= f.text_field :tag_list, :label => :tags, :size => 60, :class => 'hol' %> - </p> - <div id="project_tag_candidates" class="autocomplete"></div> - <%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' %> - - <%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => Project.first.id)}')" %> - </div> - <% end -%> -</p>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_tags/app/views/projects/_filter_tags.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,13 @@ +<p class='tag'> + <% fields_for @project, :builder => TabularFormBuilder do |f| -%> + <div> + <p id="project_tags"> + <%= f.text_field :tag_list, :label => :tags, :size => 60, :class => 'hol' %> + </p> + <div id="project_tag_candidates" class="autocomplete"></div> + <%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' %> + + <%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => Project.first.id)}')" %> + </div> + <% end -%> +</p>
--- a/vendor/plugins/redmine_tags/app/views/projects/index.erb Tue Mar 06 14:05:16 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +0,0 @@ -<% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %> - <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %> -<% end %> -<%= javascript_include_tag 'projects_index', :plugin => 'redmine_tags' %> - - -<div class="contextual"> - <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%> - <%= '| ' + link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %> -</div> - - - -<div style="clear:both;"></div> -<% if User.current.logged? %> - <%= render :partial => 'my_projects' %> -<% end %> - -<div style="clear:both;"></div> -<h2> - <%= l("label_project_all") %> -</h2> - -<div style="clear:both;"></div> - <%- form_remote_tag(:controller => :projects, :action => :index, :method => :get, :html => {:id => :project_filtering_form}) do -%> - - <% if @filter_status=="true" %> - <fieldset id="filters_fieldset" class="collapsible"> - <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend> - <%- else -%> - <fieldset id="filters_fieldset" class="collapsible collapsed"> - <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend> - <div style="display: none;"> - <%- end -%> - - <div> - <div id='filter_tags'> - <%= render :partial => 'filter_search_tags' -%> - </div> - - <p class='q'> - <%= label_tag 'q', l('project_filtering_q_label') %> - <%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %> - </p> - - <p style="display: none;"><%= submit_tag( l('button_filter'), :id => 'submitButton') -%></p> - <%= link_to l(:button_apply), {}, :onclick => "$('submitButton').click(); return false;", :class => 'icon icon-checked' -%> - <%= link_to l(:button_clear), {}, :class => 'icon icon-reload' %> - </div> - - <% unless @filter_status=="true" %> - </div> - <%- end -%> - - -<%- end -%> -</fieldset> - -<div id="projects"> - <%= render :partial => 'filtered_projects' %> -</div> - - - - -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> -<% end %> - -<% html_title(l(:label_project_plural)) -%>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_tags/app/views/projects/index.html.erb Tue Mar 06 14:07:35 2012 +0000 @@ -0,0 +1,71 @@ +<% content_for :header_tags do %> + <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %> + <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %> +<% end %> +<%= javascript_include_tag 'projects_index', :plugin => 'redmine_tags' %> + + +<div class="contextual"> + <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%> + <%= '| ' + link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %> +</div> + + + +<div style="clear:both;"></div> +<% if User.current.logged? %> + <%= render :partial => 'my_projects' %> +<% end %> + +<div style="clear:both;"></div> +<h2> + <%= l("label_project_all") %> +</h2> + +<div style="clear:both;"></div> + <%- form_remote_tag(:controller => :projects, :action => :index, :method => :get, :html => {:id => :project_filtering_form}) do -%> + + <% if @filter_status=="true" %> + <fieldset id="filters_fieldset" class="collapsible"> + <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend> + <%- else -%> + <fieldset id="filters_fieldset" class="collapsible collapsed"> + <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend> + <div style="display: none;"> + <%- end -%> + + <div> + <div id='filter_tags'> + <%= render :partial => 'filter_search_tags' -%> + </div> + + <p class='q'> + <%= label_tag 'q', l('project_filtering_q_label') %> + <%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %> + </p> + + <p style="display: none;"><%= submit_tag( l('button_filter'), :id => 'submitButton') -%></p> + <%= link_to l(:button_apply), {}, :onclick => "$('submitButton').click(); return false;", :class => 'icon icon-checked' -%> + <%= link_to l(:button_clear), {}, :class => 'icon icon-reload' %> + </div> + + <% unless @filter_status=="true" %> + </div> + <%- end -%> + + +<%- end -%> +</fieldset> + +<div id="projects"> + <%= render :partial => 'filtered_projects' %> +</div> + + + + +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> +<% end %> + +<% html_title(l(:label_project_plural)) -%>