# HG changeset patch # User Chris Cannam # Date 1330108589 0 # Node ID c6c2cbd0afeeabdfb867edac511cb9f84bdb791e # Parent df51e8ff578d8ac46015aec8a8fbd57ec6c46f09 Rename .rhtml files to .html.erb in preparation for merge diff -r df51e8ff578d -r c6c2cbd0afee app/views/account/login.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/account/login.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,42 @@ +<%= call_hook :view_account_login_top %> +
+<% form_tag({:action=> "login"}) do %> +<%= back_url_hidden_field_tag %> + + + + + + + + + +<% if Setting.openid? %> + + + + +<% end %> + + + + + + + + +
<%= text_field_tag 'username', nil, :tabindex => '1' %>
<%= password_field_tag 'password', nil, :tabindex => '2' %>
<%= text_field_tag "openid_url", nil, :tabindex => '3' %>
+ <% if Setting.autologin? %> + + <% end %> +
+ <% if Setting.lost_password? %> + <%= link_to l(:label_password_lost), :controller => 'account', :action => 'lost_password' %> + <% end %> + + +
+<%= javascript_tag "Form.Element.focus('username');" %> +<% end %> +
+<%= call_hook :view_account_login_bottom %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/account/login.rhtml --- a/app/views/account/login.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +0,0 @@ -<%= call_hook :view_account_login_top %> -
-<% form_tag({:action=> "login"}) do %> -<%= back_url_hidden_field_tag %> - - - - - - - - - -<% if Setting.openid? %> - - - - -<% end %> - - - - - - - - -
<%= text_field_tag 'username', nil, :tabindex => '1' %>
<%= password_field_tag 'password', nil, :tabindex => '2' %>
<%= text_field_tag "openid_url", nil, :tabindex => '3' %>
- <% if Setting.autologin? %> - - <% end %> -
- <% if Setting.lost_password? %> - <%= link_to l(:label_password_lost), :controller => 'account', :action => 'lost_password' %> - <% end %> - - -
-<%= javascript_tag "Form.Element.focus('username');" %> -<% end %> -
-<%= call_hook :view_account_login_bottom %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/account/lost_password.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/account/lost_password.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,11 @@ +

<%=l(:label_password_lost)%>

+ +
+<% form_tag({:action=> "lost_password"}, :class => "tabular") do %> + +

+<%= text_field_tag 'mail', nil, :size => 40 %> +<%= submit_tag l(:button_submit) %>

+ +<% end %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/account/lost_password.rhtml --- a/app/views/account/lost_password.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -

<%=l(:label_password_lost)%>

- -
-<% form_tag({:action=> "lost_password"}, :class => "tabular") do %> - -

-<%= text_field_tag 'mail', nil, :size => 40 %> -<%= submit_tag l(:button_submit) %>

- -<% end %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/account/password_recovery.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/account/password_recovery.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,15 @@ +

<%=l(:label_password_lost)%>

+ +<%= error_messages_for 'user' %> + +<% form_tag({:token => @token.value}) do %> +
+

+<%= password_field_tag 'new_password', nil, :size => 25 %>
+<%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

+ +

+<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %>

+
+

<%= submit_tag l(:button_save) %>

+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/account/password_recovery.rhtml --- a/app/views/account/password_recovery.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -

<%=l(:label_password_lost)%>

- -<%= error_messages_for 'user' %> - -<% form_tag({:token => @token.value}) do %> -
-

-<%= password_field_tag 'new_password', nil, :size => 25 %>
-<%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

- -

-<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %>

-
-

<%= submit_tag l(:button_save) %>

-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/account/register.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/account/register.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,44 @@ +

<%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %>

+ +<% form_tag({:action => 'register'}, :class => "tabular") do %> +<%= error_messages_for 'user' %> + +
+ +<% if @user.auth_source_id.nil? %> +

+<%= text_field 'user', 'login', :size => 25 %>

+ +

+<%= password_field_tag 'password', nil, :size => 25 %>
+<%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

+ +

+<%= password_field_tag 'password_confirmation', nil, :size => 25 %>

+<% end %> + +

+<%= text_field 'user', 'firstname' %>

+ +

+<%= text_field 'user', 'lastname' %>

+ +

+<%= text_field 'user', 'mail' %>

+ +

+<%= select("user", "language", lang_options_for_select) %>

+ +<% if Setting.openid? %> +

+<%= text_field 'user', 'identity_url' %>

+<% end %> + +<% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %> +

<%= custom_field_tag_with_label :user, value %>

+<% end %> + +
+ +<%= submit_tag l(:button_submit) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/account/register.rhtml --- a/app/views/account/register.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -

<%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %>

- -<% form_tag({:action => 'register'}, :class => "tabular") do %> -<%= error_messages_for 'user' %> - -
- -<% if @user.auth_source_id.nil? %> -

-<%= text_field 'user', 'login', :size => 25 %>

- -

-<%= password_field_tag 'password', nil, :size => 25 %>
-<%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

- -

-<%= password_field_tag 'password_confirmation', nil, :size => 25 %>

-<% end %> - -

-<%= text_field 'user', 'firstname' %>

- -

-<%= text_field 'user', 'lastname' %>

- -

-<%= text_field 'user', 'mail' %>

- -

-<%= select("user", "language", lang_options_for_select) %>

- -<% if Setting.openid? %> -

-<%= text_field 'user', 'identity_url' %>

-<% end %> - -<% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %> -

<%= custom_field_tag_with_label :user, value %>

-<% end %> - -
- -<%= submit_tag l(:button_submit) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/admin/_menu.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/admin/_menu.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,5 @@ +
+ +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/admin/_menu.rhtml --- a/app/views/admin/_menu.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -
- -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/admin/_no_data.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/admin/_no_data.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,8 @@ +
+<% form_tag({:action => 'default_configuration'}) do %> + <%= simple_format(l(:text_no_configuration_data)) %> +

<%= l(:field_language) %>: + <%= select_tag 'lang', options_for_select(lang_options_for_select(false), current_language.to_s) %> + <%= submit_tag l(:text_load_default_configuration) %>

+<% end %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/admin/_no_data.rhtml --- a/app/views/admin/_no_data.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -
-<% form_tag({:action => 'default_configuration'}) do %> - <%= simple_format(l(:text_no_configuration_data)) %> -

<%= l(:field_language) %>: - <%= select_tag 'lang', options_for_select(lang_options_for_select(false), current_language.to_s) %> - <%= submit_tag l(:text_load_default_configuration) %>

-<% end %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/admin/index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/admin/index.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,8 @@ +

<%=l(:label_administration)%>

+ +
+ <%= render :partial => 'no_data' if @no_configuration_data %> + <%= render :partial => 'menu' %> +
+ +<% html_title(l(:label_administration)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/admin/index.rhtml --- a/app/views/admin/index.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -

<%=l(:label_administration)%>

- -
- <%= render :partial => 'no_data' if @no_configuration_data %> - <%= render :partial => 'menu' %> -
- -<% html_title(l(:label_administration)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/admin/info.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/admin/info.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,15 @@ +

<%=l(:label_information_plural)%>

+ +

<%= Redmine::Info.versioned_name %> (<%= @db_adapter_name %>)

+ + +<% @checklist.each do |label, result| %> + + + + +<% end %> +
<%= l(label) %><%= image_tag((result ? 'true.png' : 'exclamation.png'), + :style => "vertical-align:bottom;") %>
+ +<% html_title(l(:label_information_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/admin/info.rhtml --- a/app/views/admin/info.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -

<%=l(:label_information_plural)%>

- -

<%= Redmine::Info.versioned_name %> (<%= @db_adapter_name %>)

- - -<% @checklist.each do |label, result| %> - - - - -<% end %> -
<%= l(label) %><%= image_tag((result ? 'true.png' : 'exclamation.png'), - :style => "vertical-align:bottom;") %>
- -<% html_title(l(:label_information_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/admin/plugins.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/admin/plugins.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,19 @@ +

<%= l(:label_plugins) %>

+ +<% if @plugins.any? %> + + <% @plugins.each do |plugin| %> + + + + + + + <% end %> +
<%=h plugin.name %> + <%= content_tag('span', h(plugin.description), :class => 'description') unless plugin.description.blank? %> + <%= content_tag('span', link_to(h(plugin.url), plugin.url), :class => 'url') unless plugin.url.blank? %> + <%= plugin.author_url.blank? ? h(plugin.author) : link_to(h(plugin.author), plugin.author_url) %><%=h plugin.version %><%= link_to(l(:button_configure), :controller => 'settings', :action => 'plugin', :id => plugin.id) if plugin.configurable? %>
+<% else %> +

<%= l(:label_no_data) %>

+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/admin/plugins.rhtml --- a/app/views/admin/plugins.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -

<%= l(:label_plugins) %>

- -<% if @plugins.any? %> - - <% @plugins.each do |plugin| %> - - - - - - - <% end %> -
<%=h plugin.name %> - <%= content_tag('span', h(plugin.description), :class => 'description') unless plugin.description.blank? %> - <%= content_tag('span', link_to(h(plugin.url), plugin.url), :class => 'url') unless plugin.url.blank? %> - <%= plugin.author_url.blank? ? h(plugin.author) : link_to(h(plugin.author), plugin.author_url) %><%=h plugin.version %><%= link_to(l(:button_configure), :controller => 'settings', :action => 'plugin', :id => plugin.id) if plugin.configurable? %>
-<% else %> -

<%= l(:label_no_data) %>

-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/admin/projects.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/admin/projects.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,45 @@ +
+<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %> +
+ +

<%=l(:label_project_plural)%>

+ +<% form_tag({}, :method => :get) do %> +
<%= l(:label_filter_plural) %> + +<%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> + +<%= text_field_tag 'name', params[:name], :size => 30 %> +<%= submit_tag l(:button_apply), :class => "small", :name => nil %> +<%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %> +
+<% end %> +  + +
+ + + + + + + + +<% project_tree(@projects) do |project, level| %> + <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> + + + + + +<% end %> + +
<%=l(:label_project)%><%=l(:field_is_public)%><%=l(:field_created_on)%>
<%= link_to_project(project, {:action => 'settings'}, :title => project.short_description) %><%= checked_image project.is_public? %><%= format_date(project.created_on) %> + <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %> + <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if !project.active? && (project.parent.nil? || project.parent.active?) %> + <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %> + <%= link_to(l(:button_delete), project_destroy_confirm_path(project), :class => 'icon icon-del') %> +
+
+ +<% html_title(l(:label_project_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/admin/projects.rhtml --- a/app/views/admin/projects.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -
-<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %> -
- -

<%=l(:label_project_plural)%>

- -<% form_tag({}, :method => :get) do %> -
<%= l(:label_filter_plural) %> - -<%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> - -<%= text_field_tag 'name', params[:name], :size => 30 %> -<%= submit_tag l(:button_apply), :class => "small", :name => nil %> -<%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %> -
-<% end %> -  - -
- - - - - - - - -<% project_tree(@projects) do |project, level| %> - <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> - - - - - -<% end %> - -
<%=l(:label_project)%><%=l(:field_is_public)%><%=l(:field_created_on)%>
<%= link_to_project(project, {:action => 'settings'}, :title => project.short_description) %><%= checked_image project.is_public? %><%= format_date(project.created_on) %> - <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %> - <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if !project.active? && (project.parent.nil? || project.parent.active?) %> - <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %> - <%= link_to(l(:button_delete), project_destroy_confirm_path(project), :class => 'icon icon-del') %> -
-
- -<% html_title(l(:label_project_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/attachments/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/attachments/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,8 @@ + +<%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil -%> + +
+<%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;' %> +(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>) + diff -r df51e8ff578d -r c6c2cbd0afee app/views/attachments/_form.rhtml --- a/app/views/attachments/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - -<%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil -%> - -
-<%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;' %> -(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>) - diff -r df51e8ff578d -r c6c2cbd0afee app/views/attachments/_links.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/attachments/_links.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,18 @@ +
+<% for attachment in attachments %> +

<%= link_to_attachment attachment, :class => 'icon icon-attachment' -%> +<%= h(" - #{attachment.description}") unless attachment.description.blank? %> + (<%= number_to_human_size attachment.filesize %>) + <% if options[:deletable] %> + <%= link_to image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => attachment}, + :confirm => l(:text_are_you_sure), + :method => :post, + :class => 'delete', + :title => l(:button_delete) %> + <% end %> + <% if options[:author] %> + <%= attachment.author %>, <%= format_time(attachment.created_on) %> + <% end %> +

+<% end %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/attachments/_links.rhtml --- a/app/views/attachments/_links.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -
-<% for attachment in attachments %> -

<%= link_to_attachment attachment, :class => 'icon icon-attachment' -%> -<%= h(" - #{attachment.description}") unless attachment.description.blank? %> - (<%= number_to_human_size attachment.filesize %>) - <% if options[:deletable] %> - <%= link_to image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => attachment}, - :confirm => l(:text_are_you_sure), - :method => :post, - :class => 'delete', - :title => l(:button_delete) %> - <% end %> - <% if options[:author] %> - <%= attachment.author %>, <%= format_time(attachment.created_on) %> - <% end %> -

-<% end %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/attachments/diff.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/attachments/diff.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,17 @@ +

<%=h @attachment.filename %>

+ +
+

<%= h("#{@attachment.description} - ") unless @attachment.description.blank? %> + <%= @attachment.author %>, <%= format_time(@attachment.created_on) %>

+

<%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%> + (<%= number_to_human_size @attachment.filesize %>)

+ +
+  +<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %> + +<% html_title @attachment.filename %> + +<% content_for :header_tags do -%> + <%= stylesheet_link_tag "scm" -%> +<% end -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/attachments/diff.rhtml --- a/app/views/attachments/diff.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -

<%=h @attachment.filename %>

- -
-

<%= h("#{@attachment.description} - ") unless @attachment.description.blank? %> - <%= @attachment.author %>, <%= format_time(@attachment.created_on) %>

-

<%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%> - (<%= number_to_human_size @attachment.filesize %>)

- -
-  -<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %> - -<% html_title @attachment.filename %> - -<% content_for :header_tags do -%> - <%= stylesheet_link_tag "scm" -%> -<% end -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/attachments/file.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/attachments/file.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,17 @@ +

<%=h @attachment.filename %>

+ +
+

<%= h("#{@attachment.description} - ") unless @attachment.description.blank? %> + <%= @attachment.author %>, <%= format_time(@attachment.created_on) %>

+

<%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%> + (<%= number_to_human_size @attachment.filesize %>)

+ +
+  +<%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %> + +<% html_title @attachment.filename %> + +<% content_for :header_tags do -%> + <%= stylesheet_link_tag "scm" -%> +<% end -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/attachments/file.rhtml --- a/app/views/attachments/file.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -

<%=h @attachment.filename %>

- -
-

<%= h("#{@attachment.description} - ") unless @attachment.description.blank? %> - <%= @attachment.author %>, <%= format_time(@attachment.created_on) %>

-

<%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%> - (<%= number_to_human_size @attachment.filesize %>)

- -
-  -<%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %> - -<% html_title @attachment.filename %> - -<% content_for :header_tags do -%> - <%= stylesheet_link_tag "scm" -%> -<% end -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/auth_sources/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/auth_sources/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,7 @@ +

<%=l(:label_auth_source)%> (<%= @auth_source.auth_method_name %>)

+ +<% form_tag({:action => 'update', :id => @auth_source}, :class => "tabular") do %> + <%= render :partial => 'form' %> + <%= submit_tag l(:button_save) %> +<% end %> + diff -r df51e8ff578d -r c6c2cbd0afee app/views/auth_sources/edit.rhtml --- a/app/views/auth_sources/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -

<%=l(:label_auth_source)%> (<%= @auth_source.auth_method_name %>)

- -<% form_tag({:action => 'update', :id => @auth_source}, :class => "tabular") do %> - <%= render :partial => 'form' %> - <%= submit_tag l(:button_save) %> -<% end %> - diff -r df51e8ff578d -r c6c2cbd0afee app/views/auth_sources/new.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/auth_sources/new.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%=l(:label_auth_source_new)%> (<%= @auth_source.auth_method_name %>)

+ +<% form_tag({:action => 'create'}, :class => "tabular") do %> + <%= render :partial => 'form' %> + <%= submit_tag l(:button_create) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/auth_sources/new.rhtml --- a/app/views/auth_sources/new.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%=l(:label_auth_source_new)%> (<%= @auth_source.auth_method_name %>)

- -<% form_tag({:action => 'create'}, :class => "tabular") do %> - <%= render :partial => 'form' %> - <%= submit_tag l(:button_create) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/boards/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/boards/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,8 @@ +<%= error_messages_for 'board' %> + + +
+

<%= f.text_field :name, :required => true %>

+

<%= f.text_field :description, :required => true, :size => 80 %>

+
+ diff -r df51e8ff578d -r c6c2cbd0afee app/views/boards/_form.rhtml --- a/app/views/boards/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -<%= error_messages_for 'board' %> - - -
-

<%= f.text_field :name, :required => true %>

-

<%= f.text_field :description, :required => true, :size => 80 %>

-
- diff -r df51e8ff578d -r c6c2cbd0afee app/views/boards/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/boards/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%= l(:label_board) %>

+ +<% labelled_tabular_form_for :board, @board, :url => {:action => 'edit', :id => @board} do |f| %> + <%= render :partial => 'form', :locals => {:f => f} %> + <%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/boards/edit.rhtml --- a/app/views/boards/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%= l(:label_board) %>

- -<% labelled_tabular_form_for :board, @board, :url => {:action => 'edit', :id => @board} do |f| %> - <%= render :partial => 'form', :locals => {:f => f} %> - <%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/boards/index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/boards/index.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,40 @@ +

<%= l(:label_board_plural) %>

+ + + + + + + + + +<% for board in @boards %> + + + + + + +<% end %> + +
<%= l(:label_board) %><%= l(:label_topic_plural) %><%= l(:label_message_plural) %><%= l(:label_message_last) %>
+ <%= link_to h(board.name), {:action => 'show', :id => board}, :class => "board" %>
+ <%=h board.description %> +
<%= board.topics_count %><%= board.messages_count %> + + <% if board.last_message %> + <%= authoring board.last_message.created_on, board.last_message.author %>
+ <%= link_to_message board.last_message %> + <% end %> +
+
+ +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_messages => 1, :key => User.current.rss_key} %> +<% end %> + +<% content_for :header_tags do %> + <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :show_messages => 1, :key => User.current.rss_key}) %> +<% end %> + +<% html_title l(:label_board_plural) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/boards/index.rhtml --- a/app/views/boards/index.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -

<%= l(:label_board_plural) %>

- - - - - - - - - -<% for board in @boards %> - - - - - - -<% end %> - -
<%= l(:label_board) %><%= l(:label_topic_plural) %><%= l(:label_message_plural) %><%= l(:label_message_last) %>
- <%= link_to h(board.name), {:action => 'show', :id => board}, :class => "board" %>
- <%=h board.description %> -
<%= board.topics_count %><%= board.messages_count %> - - <% if board.last_message %> - <%= authoring board.last_message.created_on, board.last_message.author %>
- <%= link_to_message board.last_message %> - <% end %> -
-
- -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_messages => 1, :key => User.current.rss_key} %> -<% end %> - -<% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :show_messages => 1, :key => User.current.rss_key}) %> -<% end %> - -<% html_title l(:label_board_plural) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/boards/new.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/boards/new.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%= l(:label_board_new) %>

+ +<% labelled_tabular_form_for :board, @board, :url => {:action => 'new'} do |f| %> + <%= render :partial => 'form', :locals => {:f => f} %> + <%= submit_tag l(:button_create) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/boards/new.rhtml --- a/app/views/boards/new.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%= l(:label_board_new) %>

- -<% labelled_tabular_form_for :board, @board, :url => {:action => 'new'} do |f| %> - <%= render :partial => 'form', :locals => {:f => f} %> - <%= submit_tag l(:button_create) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/boards/show.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/boards/show.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,73 @@ +<%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}) %> + +
+<%= link_to_if_authorized l(:label_message_new), + {:controller => 'messages', :action => 'new', :board_id => @board}, + :class => 'icon icon-add', + :onclick => 'Element.show("add-message"); Form.Element.focus("message_subject"); return false;' %> +<%= watcher_tag(@board, User.current) %> +
+ + + +

<%=h @board.name %>

+

<%=h @board.description %>

+ +<% if @topics.any? %> + + + + + <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %> + <%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %> + <%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %> + + + <% @topics.each do |topic| %> + + + + + + + + <% end %> + +
<%= l(:field_subject) %><%= l(:field_author) %>
<%= link_to h(topic.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => topic } %><%= topic.author %><%= format_time(topic.created_on) %><%= topic.replies_count %> + <% if topic.last_reply %> + <%= authoring topic.last_reply.created_on, topic.last_reply.author %>
+ <%= link_to_message topic.last_reply %> + <% end %> +
+

<%= pagination_links_full @topic_pages, @topic_count %>

+<% else %> +

<%= l(:label_no_data) %>

+<% end %> + +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> +<% end %> + +<% html_title h(@board.name) %> + +<% content_for :header_tags do %> + <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %> + <%= stylesheet_link_tag 'scm' %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/boards/show.rhtml --- a/app/views/boards/show.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,73 +0,0 @@ -<%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}) %> - -
-<%= link_to_if_authorized l(:label_message_new), - {:controller => 'messages', :action => 'new', :board_id => @board}, - :class => 'icon icon-add', - :onclick => 'Element.show("add-message"); Form.Element.focus("message_subject"); return false;' %> -<%= watcher_tag(@board, User.current) %> -
- - - -

<%=h @board.name %>

-

<%=h @board.description %>

- -<% if @topics.any? %> - - - - - <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %> - <%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %> - <%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %> - - - <% @topics.each do |topic| %> - - - - - - - - <% end %> - -
<%= l(:field_subject) %><%= l(:field_author) %>
<%= link_to h(topic.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => topic } %><%= topic.author %><%= format_time(topic.created_on) %><%= topic.replies_count %> - <% if topic.last_reply %> - <%= authoring topic.last_reply.created_on, topic.last_reply.author %>
- <%= link_to_message topic.last_reply %> - <% end %> -
-

<%= pagination_links_full @topic_pages, @topic_count %>

-<% else %> -

<%= l(:label_no_data) %>

-<% end %> - -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> -<% end %> - -<% html_title h(@board.name) %> - -<% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %> - <%= stylesheet_link_tag 'scm' %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/common/_calendar.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/common/_calendar.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,32 @@ + + +<% 7.times do |i| %><% end %> + + + +<% day = calendar.startdt +while day <= calendar.enddt %> +<%= "" if day.cwday == calendar.first_wday %> + +<%= '' if day.cwday==calendar.last_wday and day!=calendar.enddt %> +<% day = day + 1 +end %> + + +
<%= day_name( (calendar.first_wday+i)%7 ) %>
#{(day+(11-day.cwday)%7).cweek} +

<%= day.day %>

+<% calendar.events_on(day).each do |i| %> + <% if i.is_a? Issue %> +
+ <%= h("#{i.project} -") unless @project && @project == i.project %> + <%= link_to_issue i, :truncate => 30 %> + <%= render_issue_tooltip i %> +
+ <% else %> + + <%= h("#{i.project} -") unless @project && @project == i.project %> + <%= link_to_version i%> + + <% end %> +<% end %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/common/_calendar.rhtml --- a/app/views/common/_calendar.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ - - -<% 7.times do |i| %><% end %> - - - -<% day = calendar.startdt -while day <= calendar.enddt %> -<%= "" if day.cwday == calendar.first_wday %> - -<%= '' if day.cwday==calendar.last_wday and day!=calendar.enddt %> -<% day = day + 1 -end %> - - -
<%= day_name( (calendar.first_wday+i)%7 ) %>
#{(day+(11-day.cwday)%7).cweek} -

<%= day.day %>

-<% calendar.events_on(day).each do |i| %> - <% if i.is_a? Issue %> -
- <%= h("#{i.project} -") unless @project && @project == i.project %> - <%= link_to_issue i, :truncate => 30 %> - <%= render_issue_tooltip i %> -
- <% else %> - - <%= h("#{i.project} -") unless @project && @project == i.project %> - <%= link_to_version i%> - - <% end %> -<% end %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/common/_diff.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/common/_diff.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,57 @@ +<% diff = Redmine::UnifiedDiff.new(diff, :type => diff_type, :max_lines => Setting.diff_max_lines_displayed.to_i) -%> + +<% diff.each do |table_file| -%> +
+<% if diff.diff_type == 'sbs' -%> + + + + + +<% table_file.each_line do |spacing, line| -%> +<% if spacing -%> + + + +<% end -%> + + + + + + +<% end -%> + +
<%=to_utf8 table_file.file_name %>
......
<%= line.nb_line_left %> +
<%=to_utf8 line.html_line_left %>
+
<%= line.nb_line_right %> +
<%=to_utf8 line.html_line_right %>
+
+ +<% else -%> + + + + + +<% table_file.each_line do |spacing, line| %> +<% if spacing -%> + + + +<% end -%> + + + + + +<% end -%> + +
<%=to_utf8 table_file.file_name %>
......
<%= line.nb_line_left %><%= line.nb_line_right %> +
<%=to_utf8 line.html_line %>
+
+<% end -%> +
+<% end -%> + +<%= l(:text_diff_truncated) if diff.truncated? %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/common/_diff.rhtml --- a/app/views/common/_diff.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -<% diff = Redmine::UnifiedDiff.new(diff, :type => diff_type, :max_lines => Setting.diff_max_lines_displayed.to_i) -%> - -<% diff.each do |table_file| -%> -
-<% if diff.diff_type == 'sbs' -%> - - - - - -<% table_file.each_line do |spacing, line| -%> -<% if spacing -%> - - - -<% end -%> - - - - - - -<% end -%> - -
<%=to_utf8 table_file.file_name %>
......
<%= line.nb_line_left %> -
<%=to_utf8 line.html_line_left %>
-
<%= line.nb_line_right %> -
<%=to_utf8 line.html_line_right %>
-
- -<% else -%> - - - - - -<% table_file.each_line do |spacing, line| %> -<% if spacing -%> - - - -<% end -%> - - - - - -<% end -%> - -
<%=to_utf8 table_file.file_name %>
......
<%= line.nb_line_left %><%= line.nb_line_right %> -
<%=to_utf8 line.html_line %>
-
-<% end -%> -
-<% end -%> - -<%= l(:text_diff_truncated) if diff.truncated? %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/common/_file.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/common/_file.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,11 @@ +
+ + +<% line_num = 1 %> +<% syntax_highlight(filename, to_utf8(content)).each_line do |line| %> + +<% line_num += 1 %> +<% end %> + +
<%= line_num %>
<%= line %>
+
diff -r df51e8ff578d -r c6c2cbd0afee app/views/common/_file.rhtml --- a/app/views/common/_file.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -
- - -<% line_num = 1 %> -<% syntax_highlight(filename, to_utf8(content)).each_line do |line| %> - -<% line_num += 1 %> -<% end %> - -
<%= line_num %>
<%= line %>
-
diff -r df51e8ff578d -r c6c2cbd0afee app/views/common/_preview.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/common/_preview.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,3 @@ +
<%= l(:label_preview) %> +<%= textilizable @text, :attachments => @attachements, :object => @previewed %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/common/_preview.rhtml --- a/app/views/common/_preview.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -
<%= l(:label_preview) %> -<%= textilizable @text, :attachments => @attachements, :object => @previewed %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/common/_tabs.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/common/_tabs.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,28 @@ +<% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %> + +
+ + +
+ + + +<% tabs.each do |tab| -%> + <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ), + :id => "tab-content-#{tab[:name]}", + :style => (tab[:name] != selected_tab ? 'display:none' : nil), + :class => 'tab-content') %> +<% end -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/common/_tabs.rhtml --- a/app/views/common/_tabs.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -<% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %> - -
- - -
- - - -<% tabs.each do |tab| -%> - <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ), - :id => "tab-content-#{tab[:name]}", - :style => (tab[:name] != selected_tab ? 'display:none' : nil), - :class => 'tab-content') %> -<% end -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/custom_fields/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/custom_fields/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,114 @@ +<%= error_messages_for 'custom_field' %> + + + +
+

<%= f.text_field :name, :required => true %>

+

<%= f.select :field_format, custom_field_formats_for_select(@custom_field), {}, :onchange => "toggle_custom_field_format();", + :disabled => !@custom_field.new_record? %>

+

+ <%= f.text_field :min_length, :size => 5, :no_label => true %> - + <%= f.text_field :max_length, :size => 5, :no_label => true %>
(<%=l(:text_min_max_length_info)%>)

+

<%= f.text_field :regexp, :size => 50 %>
(<%=l(:text_regexp_info)%>)

+

+ <%= f.text_area :possible_values, :value => @custom_field.possible_values.to_a.join("\n"), :rows => 15 %> +
<%= l(:text_custom_field_possible_values_info) %> +

+

<%= @custom_field.field_format == 'bool' ? f.check_box(:default_value) : f.text_field(:default_value) %>

+<%= call_hook(:view_custom_fields_form_upper_box, :custom_field => @custom_field, :form => f) %> +
+ +
+<% case @custom_field.class.name +when "IssueCustomField" %> + +
<%=l(:label_tracker_plural)%> + <% for tracker in @trackers %> + <%= check_box_tag "custom_field[tracker_ids][]", tracker.id, (@custom_field.trackers.include? tracker) %> <%= tracker.name %> + <% end %> + <%= hidden_field_tag "custom_field[tracker_ids][]", '' %> +
+   +

<%= f.check_box :is_required %>

+

<%= f.check_box :is_for_all %>

+

<%= f.check_box :is_filter %>

+

<%= f.check_box :searchable %>

+ +<% when "UserCustomField" %> +

<%= f.check_box :is_required %>

+

<%= f.check_box :visible %>

+

<%= f.check_box :editable %>

+ +<% when "ProjectCustomField" %> +

<%= f.check_box :is_required %>

+

<%= f.check_box :visible %>

+

<%= f.check_box :searchable %>

+ +<% when "TimeEntryCustomField" %> +

<%= f.check_box :is_required %>

+ +<% else %> +

<%= f.check_box :is_required %>

+ +<% end %> +<%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> +
+<%= javascript_tag "toggle_custom_field_format();" %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/custom_fields/_form.rhtml --- a/app/views/custom_fields/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,114 +0,0 @@ -<%= error_messages_for 'custom_field' %> - - - -
-

<%= f.text_field :name, :required => true %>

-

<%= f.select :field_format, custom_field_formats_for_select(@custom_field), {}, :onchange => "toggle_custom_field_format();", - :disabled => !@custom_field.new_record? %>

-

- <%= f.text_field :min_length, :size => 5, :no_label => true %> - - <%= f.text_field :max_length, :size => 5, :no_label => true %>
(<%=l(:text_min_max_length_info)%>)

-

<%= f.text_field :regexp, :size => 50 %>
(<%=l(:text_regexp_info)%>)

-

- <%= f.text_area :possible_values, :value => @custom_field.possible_values.to_a.join("\n"), :rows => 15 %> -
<%= l(:text_custom_field_possible_values_info) %> -

-

<%= @custom_field.field_format == 'bool' ? f.check_box(:default_value) : f.text_field(:default_value) %>

-<%= call_hook(:view_custom_fields_form_upper_box, :custom_field => @custom_field, :form => f) %> -
- -
-<% case @custom_field.class.name -when "IssueCustomField" %> - -
<%=l(:label_tracker_plural)%> - <% for tracker in @trackers %> - <%= check_box_tag "custom_field[tracker_ids][]", tracker.id, (@custom_field.trackers.include? tracker) %> <%= tracker.name %> - <% end %> - <%= hidden_field_tag "custom_field[tracker_ids][]", '' %> -
-   -

<%= f.check_box :is_required %>

-

<%= f.check_box :is_for_all %>

-

<%= f.check_box :is_filter %>

-

<%= f.check_box :searchable %>

- -<% when "UserCustomField" %> -

<%= f.check_box :is_required %>

-

<%= f.check_box :visible %>

-

<%= f.check_box :editable %>

- -<% when "ProjectCustomField" %> -

<%= f.check_box :is_required %>

-

<%= f.check_box :visible %>

-

<%= f.check_box :searchable %>

- -<% when "TimeEntryCustomField" %> -

<%= f.check_box :is_required %>

- -<% else %> -

<%= f.check_box :is_required %>

- -<% end %> -<%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> -
-<%= javascript_tag "toggle_custom_field_format();" %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/custom_fields/_index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/custom_fields/_index.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,35 @@ + + + + + + <% if tab[:name] == 'IssueCustomField' %> + + + <% end %> + + + + + <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%> + "> + + + + <% if tab[:name] == 'IssueCustomField' %> + + + <% end %> + + + + <% end; reset_cycle %> + +
<%=l(:field_name)%><%=l(:field_field_format)%><%=l(:field_is_required)%><%=l(:field_is_for_all)%><%=l(:label_used_by)%><%=l(:button_sort)%>
<%= link_to custom_field.name, :action => 'edit', :id => custom_field %><%= l(Redmine::CustomFieldFormat.label_for(custom_field.field_format)) %><%= checked_image custom_field.is_required? %><%= checked_image custom_field.is_for_all? %><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %><%= reorder_links('custom_field', {:action => 'edit', :id => custom_field}) %> + <%= link_to(l(:button_delete), { :action => 'destroy', :id => custom_field }, + :method => :post, + :confirm => l(:text_are_you_sure), + :class => 'icon icon-del') %> +
+ +

<%= link_to l(:label_custom_field_new), {:action => 'new', :type => tab[:name]}, :class => 'icon icon-add' %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/custom_fields/_index.rhtml --- a/app/views/custom_fields/_index.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ - - - - - - <% if tab[:name] == 'IssueCustomField' %> - - - <% end %> - - - - - <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%> - "> - - - - <% if tab[:name] == 'IssueCustomField' %> - - - <% end %> - - - - <% end; reset_cycle %> - -
<%=l(:field_name)%><%=l(:field_field_format)%><%=l(:field_is_required)%><%=l(:field_is_for_all)%><%=l(:label_used_by)%><%=l(:button_sort)%>
<%= link_to custom_field.name, :action => 'edit', :id => custom_field %><%= l(Redmine::CustomFieldFormat.label_for(custom_field.field_format)) %><%= checked_image custom_field.is_required? %><%= checked_image custom_field.is_for_all? %><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %><%= reorder_links('custom_field', {:action => 'edit', :id => custom_field}) %> - <%= link_to(l(:button_delete), { :action => 'destroy', :id => custom_field }, - :method => :post, - :confirm => l(:text_are_you_sure), - :class => 'icon icon-del') %> -
- -

<%= link_to l(:label_custom_field_new), {:action => 'new', :type => tab[:name]}, :class => 'icon icon-add' %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/custom_fields/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/custom_fields/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,8 @@ +

<%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %> + » <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.type %> + » <%=h @custom_field.name %>

+ +<% labelled_tabular_form_for :custom_field, @custom_field, :url => { :action => "edit", :id => @custom_field } do |f| %> +<%= render :partial => 'form', :locals => { :f => f } %> +<%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/custom_fields/edit.rhtml --- a/app/views/custom_fields/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -

<%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %> - » <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.type %> - » <%=h @custom_field.name %>

- -<% labelled_tabular_form_for :custom_field, @custom_field, :url => { :action => "edit", :id => @custom_field } do |f| %> -<%= render :partial => 'form', :locals => { :f => f } %> -<%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/custom_fields/index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/custom_fields/index.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,5 @@ +

<%=l(:label_custom_field_plural)%>

+ +<%= render_tabs custom_fields_tabs %> + +<% html_title(l(:label_custom_field_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/custom_fields/index.rhtml --- a/app/views/custom_fields/index.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -

<%=l(:label_custom_field_plural)%>

- -<%= render_tabs custom_fields_tabs %> - -<% html_title(l(:label_custom_field_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/custom_fields/new.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/custom_fields/new.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,9 @@ +

<%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %> + » <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.type %> + » <%= l(:label_custom_field_new) %>

+ +<% labelled_tabular_form_for :custom_field, @custom_field, :url => { :action => "new" } do |f| %> +<%= render :partial => 'form', :locals => { :f => f } %> +<%= hidden_field_tag 'type', @custom_field.type %> +<%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/custom_fields/new.rhtml --- a/app/views/custom_fields/new.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -

<%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %> - » <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.type %> - » <%= l(:label_custom_field_new) %>

- -<% labelled_tabular_form_for :custom_field, @custom_field, :url => { :action => "new" } do |f| %> -<%= render :partial => 'form', :locals => { :f => f } %> -<%= hidden_field_tag 'type', @custom_field.type %> -<%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/documents/_document.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/documents/_document.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %>

+

<%= format_time(document.updated_on) %>

+ +
+ <%= textilizable(truncate_lines(document.description)) %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/documents/_document.rhtml --- a/app/views/documents/_document.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %>

-

<%= format_time(document.updated_on) %>

- -
- <%= textilizable(truncate_lines(document.description)) %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/documents/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/documents/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,15 @@ +<%= error_messages_for 'document' %> +
+ +

+<%= select('document', 'category_id', DocumentCategory.all.collect {|c| [c.name, c.id]}) %>

+ +

+<%= text_field 'document', 'title', :size => 60 %>

+ +

+<%= text_area 'document', 'description', :cols => 60, :rows => 15, :class => 'wiki-edit' %>

+ +
+ +<%= wikitoolbar_for 'document_description' %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/documents/_form.rhtml --- a/app/views/documents/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -<%= error_messages_for 'document' %> -
- -

-<%= select('document', 'category_id', DocumentCategory.all.collect {|c| [c.name, c.id]}) %>

- -

-<%= text_field 'document', 'title', :size => 60 %>

- -

-<%= text_area 'document', 'description', :cols => 60, :rows => 15, :class => 'wiki-edit' %>

- -
- -<%= wikitoolbar_for 'document_description' %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/documents/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/documents/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,8 @@ +

<%=l(:label_document)%>

+ +<% form_tag({:action => 'edit', :id => @document}, :class => "tabular") do %> + <%= render :partial => 'form' %> + <%= submit_tag l(:button_save) %> +<% end %> + + diff -r df51e8ff578d -r c6c2cbd0afee app/views/documents/edit.rhtml --- a/app/views/documents/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -

<%=l(:label_document)%>

- -<% form_tag({:action => 'edit', :id => @document}, :class => "tabular") do %> - <%= render :partial => 'form' %> - <%= submit_tag l(:button_save) %> -<% end %> - - diff -r df51e8ff578d -r c6c2cbd0afee app/views/documents/index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/documents/index.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,39 @@ +
+<%= link_to_if_authorized l(:label_document_new), + {:controller => 'documents', :action => 'new', :project_id => @project}, + :class => 'icon icon-add', + :onclick => 'Element.show("add-document"); Form.Element.focus("document_title"); return false;' %> +
+ + + +

<%=l(:label_document_plural)%>

+ +<% if @grouped.empty? %>

<%= l(:label_no_data) %>

<% end %> + +<% @grouped.keys.sort.each do |group| %> +

<%= group %>

+ <%= render :partial => 'documents/document', :collection => @grouped[group] %> +<% end %> + +<% content_for :sidebar do %> +

<%= l(:label_sort_by, '') %>

+ <% form_tag({}, :method => :get) do %> +
+
+
+ + <% end %> +<% end %> + +<% html_title(l(:label_document_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/documents/index.rhtml --- a/app/views/documents/index.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -
-<%= link_to_if_authorized l(:label_document_new), - {:controller => 'documents', :action => 'new', :project_id => @project}, - :class => 'icon icon-add', - :onclick => 'Element.show("add-document"); Form.Element.focus("document_title"); return false;' %> -
- - - -

<%=l(:label_document_plural)%>

- -<% if @grouped.empty? %>

<%= l(:label_no_data) %>

<% end %> - -<% @grouped.keys.sort.each do |group| %> -

<%= group %>

- <%= render :partial => 'documents/document', :collection => @grouped[group] %> -<% end %> - -<% content_for :sidebar do %> -

<%= l(:label_sort_by, '') %>

- <% form_tag({}, :method => :get) do %> -
-
-
- - <% end %> -<% end %> - -<% html_title(l(:label_document_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/documents/new.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/documents/new.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,13 @@ +

<%=l(:label_document_new)%>

+ +<% form_tag({:controller => 'documents', :action => 'new', :project_id => @project}, :class => "tabular", :multipart => true) do %> +<%= render :partial => 'documents/form' %> + +
+

<%= render :partial => 'attachments/form' %>

+
+ +<%= submit_tag l(:button_create) %> +<% end %> + + diff -r df51e8ff578d -r c6c2cbd0afee app/views/documents/new.rhtml --- a/app/views/documents/new.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -

<%=l(:label_document_new)%>

- -<% form_tag({:controller => 'documents', :action => 'new', :project_id => @project}, :class => "tabular", :multipart => true) do %> -<%= render :partial => 'documents/form' %> - -
-

<%= render :partial => 'attachments/form' %>

-
- -<%= submit_tag l(:button_create) %> -<% end %> - - diff -r df51e8ff578d -r c6c2cbd0afee app/views/documents/show.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/documents/show.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,32 @@ +
+<%= link_to_if_authorized l(:button_edit), {:controller => 'documents', :action => 'edit', :id => @document}, :class => 'icon icon-edit', :accesskey => accesskey(:edit) %> +<%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy', :id => @document}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> +
+ +

<%=h @document.title %>

+ +

<%=h @document.category.name %>
+<%= format_date @document.created_on %>

+
+<%= textilizable @document.description, :attachments => @document.attachments %> +
+ +

<%= l(:label_attachment_plural) %>

+<%= link_to_attachments @document %> + +<% if authorize_for('documents', 'add_attachment') %> +

<%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;", + :id => 'attach_files_link' %>

+ <% form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %> +
+

<%= render :partial => 'attachments/form' %>

+
+ <%= submit_tag l(:button_add) %> + <% end %> +<% end %> + +<% html_title @document.title -%> + +<% content_for :header_tags do %> + <%= stylesheet_link_tag 'scm' %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/documents/show.rhtml --- a/app/views/documents/show.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -
-<%= link_to_if_authorized l(:button_edit), {:controller => 'documents', :action => 'edit', :id => @document}, :class => 'icon icon-edit', :accesskey => accesskey(:edit) %> -<%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy', :id => @document}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> -
- -

<%=h @document.title %>

- -

<%=h @document.category.name %>
-<%= format_date @document.created_on %>

-
-<%= textilizable @document.description, :attachments => @document.attachments %> -
- -

<%= l(:label_attachment_plural) %>

-<%= link_to_attachments @document %> - -<% if authorize_for('documents', 'add_attachment') %> -

<%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;", - :id => 'attach_files_link' %>

- <% form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %> -
-

<%= render :partial => 'attachments/form' %>

-
- <%= submit_tag l(:button_add) %> - <% end %> -<% end %> - -<% html_title @document.title -%> - -<% content_for :header_tags do %> - <%= stylesheet_link_tag 'scm' %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/enumerations/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/enumerations/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,19 @@ +<%= error_messages_for 'enumeration' %> +
+ +<%= hidden_field 'enumeration', 'type' %> + +

+<%= text_field 'enumeration', 'name' %>

+ +

+<%= check_box 'enumeration', 'active' %>

+ +

+<%= check_box 'enumeration', 'is_default' %>

+ + +<% @enumeration.custom_field_values.each do |value| %> +

<%= custom_field_tag_with_label :enumeration, value %>

+<% end %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/enumerations/_form.rhtml --- a/app/views/enumerations/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -<%= error_messages_for 'enumeration' %> -
- -<%= hidden_field 'enumeration', 'type' %> - -

-<%= text_field 'enumeration', 'name' %>

- -

-<%= check_box 'enumeration', 'active' %>

- -

-<%= check_box 'enumeration', 'is_default' %>

- - -<% @enumeration.custom_field_values.each do |value| %> -

<%= custom_field_tag_with_label :enumeration, value %>

-<% end %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/enumerations/destroy.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/enumerations/destroy.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,12 @@ +

<%= l(@enumeration.option_name) %>: <%=h @enumeration %>

+ +<% form_tag({}) do %> +
+

<%= l(:text_enumeration_destroy_question, @enumeration.objects_count) %>

+

<%= l(:text_enumeration_category_reassign_to) %> +<%= select_tag 'reassign_to_id', ("" + options_from_collection_for_select(@enumerations, 'id', 'name')) %>

+
+ +<%= submit_tag l(:button_apply) %> +<%= link_to l(:button_cancel), :controller => 'enumerations', :action => 'index' %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/enumerations/destroy.rhtml --- a/app/views/enumerations/destroy.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -

<%= l(@enumeration.option_name) %>: <%=h @enumeration %>

- -<% form_tag({}) do %> -
-

<%= l(:text_enumeration_destroy_question, @enumeration.objects_count) %>

-

<%= l(:text_enumeration_category_reassign_to) %> -<%= select_tag 'reassign_to_id', ("" + options_from_collection_for_select(@enumerations, 'id', 'name')) %>

-
- -<%= submit_tag l(:button_apply) %> -<%= link_to l(:button_cancel), :controller => 'enumerations', :action => 'index' %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/enumerations/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/enumerations/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,10 @@ +

<%= link_to l(@enumeration.option_name), :controller => 'enumerations', :action => 'index' %> » <%=h @enumeration %>

+ +<% form_tag({:action => 'update', :id => @enumeration}, :class => "tabular") do %> + <%= render :partial => 'form' %> + <%= submit_tag l(:button_save) %> +<% end %> + +<% form_tag({:action => 'destroy', :id => @enumeration}) do %> + <%= submit_tag l(:button_delete) %> +<% end %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/enumerations/edit.rhtml --- a/app/views/enumerations/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -

<%= link_to l(@enumeration.option_name), :controller => 'enumerations', :action => 'index' %> » <%=h @enumeration %>

- -<% form_tag({:action => 'update', :id => @enumeration}, :class => "tabular") do %> - <%= render :partial => 'form' %> - <%= submit_tag l(:button_save) %> -<% end %> - -<% form_tag({:action => 'destroy', :id => @enumeration}) do %> - <%= submit_tag l(:button_delete) %> -<% end %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/enumerations/list.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/enumerations/list.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,37 @@ +

<%=l(:label_enumerations)%>

+ +<% Enumeration.get_subclasses.each do |klass| %> +

<%= l(klass::OptionName) %>

+ +<% enumerations = klass.shared %> +<% if enumerations.any? %> + + + + + + + + +<% enumerations.each do |enumeration| %> + + + + + + + +<% end %> +
<%= l(:field_name) %><%= l(:field_is_default) %><%= l(:field_active) %>
<%= link_to h(enumeration), :action => 'edit', :id => enumeration %><%= checked_image enumeration.is_default? %><%= checked_image enumeration.active? %><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}) %> + <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, + :method => :post, + :confirm => l(:text_are_you_sure), + :class => 'icon icon-del' %> +
+<% reset_cycle %> +<% end %> + +

<%= link_to l(:label_enumeration_new), { :action => 'new', :type => klass.name } %>

+<% end %> + +<% html_title(l(:label_enumerations)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/enumerations/list.rhtml --- a/app/views/enumerations/list.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -

<%=l(:label_enumerations)%>

- -<% Enumeration.get_subclasses.each do |klass| %> -

<%= l(klass::OptionName) %>

- -<% enumerations = klass.shared %> -<% if enumerations.any? %> - - - - - - - - -<% enumerations.each do |enumeration| %> - - - - - - - -<% end %> -
<%= l(:field_name) %><%= l(:field_is_default) %><%= l(:field_active) %>
<%= link_to h(enumeration), :action => 'edit', :id => enumeration %><%= checked_image enumeration.is_default? %><%= checked_image enumeration.active? %><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}) %> - <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, - :method => :post, - :confirm => l(:text_are_you_sure), - :class => 'icon icon-del' %> -
-<% reset_cycle %> -<% end %> - -

<%= link_to l(:label_enumeration_new), { :action => 'new', :type => klass.name } %>

-<% end %> - -<% html_title(l(:label_enumerations)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/enumerations/new.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/enumerations/new.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%= link_to l(@enumeration.option_name), :controller => 'enumerations', :action => 'index' %> » <%=l(:label_enumeration_new)%>

+ +<% form_tag({:action => 'create'}, :class => "tabular") do %> + <%= render :partial => 'form' %> + <%= submit_tag l(:button_create) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/enumerations/new.rhtml --- a/app/views/enumerations/new.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%= link_to l(@enumeration.option_name), :controller => 'enumerations', :action => 'index' %> » <%=l(:label_enumeration_new)%>

- -<% form_tag({:action => 'create'}, :class => "tabular") do %> - <%= render :partial => 'form' %> - <%= submit_tag l(:button_create) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_categories/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issue_categories/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +<%= error_messages_for 'category' %> + +
+

<%= f.text_field :name, :size => 30, :required => true %>

+

<%= f.select :assigned_to_id, @project.users.sort.collect{|u| [u.name, u.id]}, :include_blank => true %>

+
diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_categories/_form.rhtml --- a/app/views/issue_categories/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -<%= error_messages_for 'category' %> - -
-

<%= f.text_field :name, :size => 30, :required => true %>

-

<%= f.select :assigned_to_id, @project.users.sort.collect{|u| [u.name, u.id]}, :include_blank => true %>

-
diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_categories/destroy.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issue_categories/destroy.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,15 @@ +

<%=l(:label_issue_category)%>: <%=h @category.name %>

+ +<% form_tag({}) do %> +
+

<%= l(:text_issue_category_destroy_question, @issue_count) %>

+


+<% if @categories.size > 0 %> +: +<%= select_tag 'reassign_to_id', options_from_collection_for_select(@categories, 'id', 'name') %>

+<% end %> +
+ +<%= submit_tag l(:button_apply) %> +<%= link_to l(:button_cancel), :controller => 'projects', :action => 'settings', :id => @project, :tab => 'categories' %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_categories/destroy.rhtml --- a/app/views/issue_categories/destroy.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -

<%=l(:label_issue_category)%>: <%=h @category.name %>

- -<% form_tag({}) do %> -
-

<%= l(:text_issue_category_destroy_question, @issue_count) %>

-


-<% if @categories.size > 0 %> -: -<%= select_tag 'reassign_to_id', options_from_collection_for_select(@categories, 'id', 'name') %>

-<% end %> -
- -<%= submit_tag l(:button_apply) %> -<%= link_to l(:button_cancel), :controller => 'projects', :action => 'settings', :id => @project, :tab => 'categories' %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_categories/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issue_categories/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%=l(:label_issue_category)%>

+ +<% labelled_tabular_form_for :category, @category, :url => { :action => 'edit', :id => @category } do |f| %> +<%= render :partial => 'issue_categories/form', :locals => { :f => f } %> +<%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_categories/edit.rhtml --- a/app/views/issue_categories/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%=l(:label_issue_category)%>

- -<% labelled_tabular_form_for :category, @category, :url => { :action => 'edit', :id => @category } do |f| %> -<%= render :partial => 'issue_categories/form', :locals => { :f => f } %> -<%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_moves/new.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issue_moves/new.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,79 @@ +

<%= @copy ? l(:button_copy) : l(:button_move) %>

+ + + +<% form_tag({:action => 'create'}, :id => 'move_form') do %> +<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> + +
+
+<%= l(:label_change_properties) %> + +
+

+<%= select_tag "new_project_id", + project_tree_options_for_select(@allowed_projects, :selected => @target_project), + :onchange => remote_function(:url => { :action => 'new' }, + :method => :get, + :update => 'content', + :with => "Form.serialize('move_form')") %>

+ +

+<%= select_tag "new_tracker_id", "" + options_from_collection_for_select(@trackers, "id", "name") %>

+ +

+ + <%= select_tag('status_id', "" + options_from_collection_for_select(@available_statuses, :id, :name)) %> +

+ +

+ + <%= select_tag('priority_id', "" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %> +

+ +

+ + <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') + + content_tag('option', l(:label_nobody), :value => 'none') + + options_from_collection_for_select(@target_project.assignable_users, :id, :name)) %> +

+
+ +
+

+ + <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %> +

+ +

+ + <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %> +

+
+ +
+ +
<%= l(:field_notes) %> +<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> +<%= wikitoolbar_for 'notes' %> +
+ +<%= call_hook(:view_issues_move_bottom, :issues => @issues, :target_project => @target_project, :copy => !!@copy) %> +
+ +<% if @copy %> + <%= hidden_field_tag("copy_options[copy]", "1") %> + <%= submit_tag l(:button_copy) %> + <%= submit_tag l(:button_copy_and_follow), :name => 'follow' %> +<% else %> + <%= submit_tag l(:button_move) %> + <%= submit_tag l(:button_move_and_follow), :name => 'follow' %> +<% end %> +<% end %> +<% content_for :header_tags do %> + <%= robot_exclusion_tag %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_moves/new.rhtml --- a/app/views/issue_moves/new.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -

<%= @copy ? l(:button_copy) : l(:button_move) %>

- - - -<% form_tag({:action => 'create'}, :id => 'move_form') do %> -<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> - -
-
-<%= l(:label_change_properties) %> - -
-

-<%= select_tag "new_project_id", - project_tree_options_for_select(@allowed_projects, :selected => @target_project), - :onchange => remote_function(:url => { :action => 'new' }, - :method => :get, - :update => 'content', - :with => "Form.serialize('move_form')") %>

- -

-<%= select_tag "new_tracker_id", "" + options_from_collection_for_select(@trackers, "id", "name") %>

- -

- - <%= select_tag('status_id', "" + options_from_collection_for_select(@available_statuses, :id, :name)) %> -

- -

- - <%= select_tag('priority_id', "" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %> -

- -

- - <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') + - content_tag('option', l(:label_nobody), :value => 'none') + - options_from_collection_for_select(@target_project.assignable_users, :id, :name)) %> -

-
- -
-

- - <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %> -

- -

- - <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %> -

-
- -
- -
<%= l(:field_notes) %> -<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> -<%= wikitoolbar_for 'notes' %> -
- -<%= call_hook(:view_issues_move_bottom, :issues => @issues, :target_project => @target_project, :copy => !!@copy) %> -
- -<% if @copy %> - <%= hidden_field_tag("copy_options[copy]", "1") %> - <%= submit_tag l(:button_copy) %> - <%= submit_tag l(:button_copy_and_follow), :name => 'follow' %> -<% else %> - <%= submit_tag l(:button_move) %> - <%= submit_tag l(:button_move_and_follow), :name => 'follow' %> -<% end %> -<% end %> -<% content_for :header_tags do %> - <%= robot_exclusion_tag %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_relations/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issue_relations/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,14 @@ +<%= error_messages_for 'relation' %> + +

<%= f.select :relation_type, collection_for_relation_type_select, {}, :onchange => "setPredecessorFieldsVisibility();" %> +<%= l(:label_issue) %> #<%= f.text_field :issue_to_id, :size => 10 %> +

+<%= javascript_tag "observeRelatedIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %> + +<%= submit_tag l(:button_add) %> +<%= toggle_link l(:button_cancel), 'new-relation-form'%> +

+ +<%= javascript_tag "setPredecessorFieldsVisibility();" %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_relations/_form.rhtml --- a/app/views/issue_relations/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -<%= error_messages_for 'relation' %> - -

<%= f.select :relation_type, collection_for_relation_type_select, {}, :onchange => "setPredecessorFieldsVisibility();" %> -<%= l(:label_issue) %> #<%= f.text_field :issue_to_id, :size => 10 %> -

-<%= javascript_tag "observeRelatedIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %> - -<%= submit_tag l(:button_add) %> -<%= toggle_link l(:button_cancel), 'new-relation-form'%> -

- -<%= javascript_tag "setPredecessorFieldsVisibility();" %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_statuses/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issue_statuses/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,22 @@ +<%= error_messages_for 'issue_status' %> + +
+ +

+<%= text_field 'issue_status', 'name' %>

+ +<% if Issue.use_status_for_done_ratio? %> +

+<%= select 'issue_status', :default_done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }), :include_blank => true %>

+<% end %> + +

+<%= check_box 'issue_status', 'is_closed' %>

+ +

+<%= check_box 'issue_status', 'is_default' %>

+ +<%= call_hook(:view_issue_statuses_form, :issue_status => @issue_status) %> + + +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_statuses/_form.rhtml --- a/app/views/issue_statuses/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -<%= error_messages_for 'issue_status' %> - -
- -

-<%= text_field 'issue_status', 'name' %>

- -<% if Issue.use_status_for_done_ratio? %> -

-<%= select 'issue_status', :default_done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }), :include_blank => true %>

-<% end %> - -

-<%= check_box 'issue_status', 'is_closed' %>

- -

-<%= check_box 'issue_status', 'is_default' %>

- -<%= call_hook(:view_issue_statuses_form, :issue_status => @issue_status) %> - - -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_statuses/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issue_statuses/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%= link_to l(:label_issue_status_plural), :controller => 'issue_statuses', :action => 'index' %> » <%=h @issue_status %>

+ +<% form_tag({:action => 'update', :id => @issue_status}, :class => "tabular") do %> + <%= render :partial => 'form' %> + <%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_statuses/edit.rhtml --- a/app/views/issue_statuses/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%= link_to l(:label_issue_status_plural), :controller => 'issue_statuses', :action => 'index' %> » <%=h @issue_status %>

- -<% form_tag({:action => 'update', :id => @issue_status}, :class => "tabular") do %> - <%= render :partial => 'form' %> - <%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_statuses/new.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issue_statuses/new.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%= link_to l(:label_issue_status_plural), :controller => 'issue_statuses', :action => 'index' %> » <%=l(:label_issue_status_new)%>

+ +<% form_tag({:action => 'create'}, :class => "tabular") do %> + <%= render :partial => 'form' %> + <%= submit_tag l(:button_create) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issue_statuses/new.rhtml --- a/app/views/issue_statuses/new.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%= link_to l(:label_issue_status_plural), :controller => 'issue_statuses', :action => 'index' %> » <%=l(:label_issue_status_new)%>

- -<% form_tag({:action => 'create'}, :class => "tabular") do %> - <%= render :partial => 'form' %> - <%= submit_tag l(:button_create) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_action_menu.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/_action_menu.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,9 @@ +
+<%= link_to_if_authorized(l(:button_update), {:controller => 'issues', :action => 'edit', :id => @issue }, :onclick => 'showAndScrollTo("update", "notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %> +<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'new', :issue_id => @issue}, :class => 'icon icon-time-add' %> +<%= watcher_tag(@issue, User.current) %> +<%= link_to_if_authorized l(:button_duplicate), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-duplicate' %> +<%= link_to_if_authorized l(:button_copy), {:controller => 'issue_moves', :action => 'new', :id => @issue, :copy_options => {:copy => 't'}}, :class => 'icon icon-copy' %> +<%= link_to_if_authorized l(:button_move), {:controller => 'issue_moves', :action => 'new', :id => @issue}, :class => 'icon icon-move' %> +<%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => issues_destroy_confirmation_message(@issue), :method => :post, :class => 'icon icon-del' %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_action_menu.rhtml --- a/app/views/issues/_action_menu.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -
-<%= link_to_if_authorized(l(:button_update), {:controller => 'issues', :action => 'edit', :id => @issue }, :onclick => 'showAndScrollTo("update", "notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %> -<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'new', :issue_id => @issue}, :class => 'icon icon-time-add' %> -<%= watcher_tag(@issue, User.current) %> -<%= link_to_if_authorized l(:button_duplicate), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-duplicate' %> -<%= link_to_if_authorized l(:button_copy), {:controller => 'issue_moves', :action => 'new', :id => @issue, :copy_options => {:copy => 't'}}, :class => 'icon icon-copy' %> -<%= link_to_if_authorized l(:button_move), {:controller => 'issue_moves', :action => 'new', :id => @issue}, :class => 'icon icon-move' %> -<%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => issues_destroy_confirmation_message(@issue), :method => :post, :class => 'icon icon-del' %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_attributes.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/_attributes.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,50 @@ +<% fields_for :issue, @issue, :builder => TabularFormBuilder do |f| %> + +
+<% if @issue.new_record? || @allowed_statuses.any? %> +

<%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %>

+<% else %> +

<%= @issue.status.name %>

+<% end %> + +

<%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true}, :disabled => !@issue.leaf? %>

+

<%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %>

+<% unless @project.issue_categories.empty? %> +

<%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %> +<%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'), + l(:label_issue_category_new), + 'category[name]', + {:controller => 'issue_categories', :action => 'new', :project_id => @project}, + :title => l(:label_issue_category_new), + :tabindex => 199) if authorize_for('issue_categories', 'new') %>

+<% end %> +<% unless @issue.assignable_versions.empty? %> +

<%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true %> +<%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'), + l(:label_version_new), + 'version[name]', + {:controller => 'versions', :action => 'create', :project_id => @project}, + :title => l(:label_version_new), + :tabindex => 200) if authorize_for('versions', 'new') %> +

+<% end %> +
+ +
+<% if User.current.allowed_to?(:manage_subtasks, @project) %> +

<%= f.text_field :parent_issue_id, :size => 10 %>

+
+<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %> +<% end %> +

<%= f.text_field :start_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_start_date') if @issue.leaf? %>

+

<%= f.text_field :due_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_due_date') if @issue.leaf? %>

+

<%= f.text_field :estimated_hours, :size => 3, :disabled => !@issue.leaf? %> <%= l(:field_hours) %>

+<% if @issue.leaf? && Issue.use_field_for_done_ratio? %> +

<%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %>

+<% end %> +
+ +
+<%= render :partial => 'issues/form_custom_fields' %> + +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_attributes.rhtml --- a/app/views/issues/_attributes.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -<% fields_for :issue, @issue, :builder => TabularFormBuilder do |f| %> - -
-<% if @issue.new_record? || @allowed_statuses.any? %> -

<%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %>

-<% else %> -

<%= @issue.status.name %>

-<% end %> - -

<%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true}, :disabled => !@issue.leaf? %>

-

<%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %>

-<% unless @project.issue_categories.empty? %> -

<%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %> -<%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'), - l(:label_issue_category_new), - 'category[name]', - {:controller => 'issue_categories', :action => 'new', :project_id => @project}, - :title => l(:label_issue_category_new), - :tabindex => 199) if authorize_for('issue_categories', 'new') %>

-<% end %> -<% unless @issue.assignable_versions.empty? %> -

<%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true %> -<%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'), - l(:label_version_new), - 'version[name]', - {:controller => 'versions', :action => 'create', :project_id => @project}, - :title => l(:label_version_new), - :tabindex => 200) if authorize_for('versions', 'new') %> -

-<% end %> -
- -
-<% if User.current.allowed_to?(:manage_subtasks, @project) %> -

<%= f.text_field :parent_issue_id, :size => 10 %>

-
-<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %> -<% end %> -

<%= f.text_field :start_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_start_date') if @issue.leaf? %>

-

<%= f.text_field :due_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_due_date') if @issue.leaf? %>

-

<%= f.text_field :estimated_hours, :size => 3, :disabled => !@issue.leaf? %> <%= l(:field_hours) %>

-<% if @issue.leaf? && Issue.use_field_for_done_ratio? %> -

<%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %>

-<% end %> -
- -
-<%= render :partial => 'issues/form_custom_fields' %> - -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_changesets.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/_changesets.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,10 @@ +<% changesets.each do |changeset| %> +
+

<%= link_to_revision(changeset, changeset.project, + :text => "#{l(:label_revision)} #{changeset.format_identifier}") %>
+ <%= authoring(changeset.committed_on, changeset.author) %>

+
+ <%= textilizable(changeset, :comments) %> +
+
+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_changesets.rhtml --- a/app/views/issues/_changesets.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -<% changesets.each do |changeset| %> -
-

<%= link_to_revision(changeset, changeset.project, - :text => "#{l(:label_revision)} #{changeset.format_identifier}") %>
- <%= authoring(changeset.committed_on, changeset.author) %>

-
- <%= textilizable(changeset, :comments) %> -
-
-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/_edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,55 @@ +<% labelled_tabular_form_for :issue, @issue, + :url => {:action => 'update', :id => @issue}, + :html => {:id => 'issue-form', + :class => nil, + :method => :put, + :multipart => true} do |f| %> + <%= error_messages_for 'issue', 'time_entry' %> +
+ <% if @edit_allowed || !@allowed_statuses.empty? %> +
<%= l(:label_change_properties) %> + <% if !@issue.new_record? && !@issue.errors.any? && @edit_allowed %> + (<%= link_to l(:label_more), {}, :onclick => 'Effect.toggle("issue_descr_fields", "appear", {duration:0.3}); return false;' %>) + <% end %> + + <%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %> +
+ <% end %> + <% if authorize_for('timelog', 'edit') %> +
<%= l(:button_log_time) %> + <% fields_for :time_entry, @time_entry, { :builder => TabularFormBuilder, :lang => current_language} do |time_entry| %> +
+

<%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %>

+
+
+

<%= time_entry.select :activity_id, activity_collection_for_select_options %>

+
+

<%= time_entry.text_field :comments, :size => 60 %>

+ <% @time_entry.custom_field_values.each do |value| %> +

<%= custom_field_tag_with_label :time_entry, value %>

+ <% end %> + <% end %> +
+ <% end %> + +
<%= l(:field_notes) %> + <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> + <%= wikitoolbar_for 'notes' %> + <%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %> + +

<%=l(:label_attachment_plural)%>
<%= render :partial => 'attachments/form' %>

+
+
+ + <%= f.hidden_field :lock_version %> + <%= submit_tag l(:button_submit) %> + <%= link_to_remote l(:label_preview), + { :url => preview_issue_path(:project_id => @project, :id => @issue), + :method => 'post', + :update => 'preview', + :with => 'Form.serialize("issue-form")', + :complete => "Element.scrollTo('preview')" + }, :accesskey => accesskey(:preview) %> +<% end %> + +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_edit.rhtml --- a/app/views/issues/_edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -<% labelled_tabular_form_for :issue, @issue, - :url => {:action => 'update', :id => @issue}, - :html => {:id => 'issue-form', - :class => nil, - :method => :put, - :multipart => true} do |f| %> - <%= error_messages_for 'issue', 'time_entry' %> -
- <% if @edit_allowed || !@allowed_statuses.empty? %> -
<%= l(:label_change_properties) %> - <% if !@issue.new_record? && !@issue.errors.any? && @edit_allowed %> - (<%= link_to l(:label_more), {}, :onclick => 'Effect.toggle("issue_descr_fields", "appear", {duration:0.3}); return false;' %>) - <% end %> - - <%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %> -
- <% end %> - <% if authorize_for('timelog', 'edit') %> -
<%= l(:button_log_time) %> - <% fields_for :time_entry, @time_entry, { :builder => TabularFormBuilder, :lang => current_language} do |time_entry| %> -
-

<%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %>

-
-
-

<%= time_entry.select :activity_id, activity_collection_for_select_options %>

-
-

<%= time_entry.text_field :comments, :size => 60 %>

- <% @time_entry.custom_field_values.each do |value| %> -

<%= custom_field_tag_with_label :time_entry, value %>

- <% end %> - <% end %> -
- <% end %> - -
<%= l(:field_notes) %> - <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> - <%= wikitoolbar_for 'notes' %> - <%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %> - -

<%=l(:label_attachment_plural)%>
<%= render :partial => 'attachments/form' %>

-
-
- - <%= f.hidden_field :lock_version %> - <%= submit_tag l(:button_submit) %> - <%= link_to_remote l(:label_preview), - { :url => preview_issue_path(:project_id => @project, :id => @issue), - :method => 'post', - :update => 'preview', - :with => 'Form.serialize("issue-form")', - :complete => "Element.scrollTo('preview')" - }, :accesskey => accesskey(:preview) %> -<% end %> - -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,40 @@ +<%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %> + +
> +<% if @issue.safe_attribute_names.include?('is_private') %> +

+ +

+<% end %> +

<%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %>

+<%= observe_field :issue_tracker_id, :url => { :action => :new, :project_id => @project, :id => @issue }, + :update => :attributes, + :with => "Form.serialize('issue-form')" %> + +

<%= f.text_field :subject, :size => 80, :required => true %>

+

<%= f.text_area :description, + :cols => 60, + :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), + :accesskey => accesskey(:edit), + :class => 'wiki-edit' %>

+
+ +
+ <%= render :partial => 'issues/attributes' %> +
+ +<% if @issue.new_record? %> +

<%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %>

+<% end %> + +<% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> +

+<% @issue.project.users.sort.each do |user| -%> + +<% end -%> +

+<% end %> + +<%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %> + +<%= wikitoolbar_for 'issue_description' %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_form.rhtml --- a/app/views/issues/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -<%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %> - -
> -<% if @issue.safe_attribute_names.include?('is_private') %> -

- -

-<% end %> -

<%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %>

-<%= observe_field :issue_tracker_id, :url => { :action => :new, :project_id => @project, :id => @issue }, - :update => :attributes, - :with => "Form.serialize('issue-form')" %> - -

<%= f.text_field :subject, :size => 80, :required => true %>

-

<%= f.text_area :description, - :cols => 60, - :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), - :accesskey => accesskey(:edit), - :class => 'wiki-edit' %>

-
- -
- <%= render :partial => 'issues/attributes' %> -
- -<% if @issue.new_record? %> -

<%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %>

-<% end %> - -<% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> -

-<% @issue.project.users.sort.each do |user| -%> - -<% end -%> -

-<% end %> - -<%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %> - -<%= wikitoolbar_for 'issue_description' %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_form_custom_fields.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/_form_custom_fields.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,12 @@ +
+<% i = 0 %> +<% split_on = (@issue.custom_field_values.size / 2.0).ceil - 1 %> +<% @issue.custom_field_values.each do |value| %> +

<%= custom_field_tag_with_label :issue, value %>

+<% if i == split_on -%> +
+<% end -%> +<% i += 1 -%> +<% end -%> +
+
diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_form_custom_fields.rhtml --- a/app/views/issues/_form_custom_fields.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -
-<% i = 0 %> -<% split_on = (@issue.custom_field_values.size / 2.0).ceil - 1 %> -<% @issue.custom_field_values.each do |value| %> -

<%= custom_field_tag_with_label :issue, value %>

-<% if i == split_on -%> -
-<% end -%> -<% i += 1 -%> -<% end -%> -
-
diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_form_update.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/_form_update.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,14 @@ +
+
+

<%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %>

+

<%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %>

+
+
+<% if Issue.use_field_for_done_ratio? %> +

<%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %>

+<% end %> +<% unless @issue.assignable_versions.empty? %> +

<%= f.select :fixed_version_id, (@issue.assignable_versions.collect {|v| [v.name, v.id]}), :include_blank => true %>

+<% end %> +
+
diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_form_update.rhtml --- a/app/views/issues/_form_update.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -
-
-

<%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %>

-

<%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %>

-
-
-<% if Issue.use_field_for_done_ratio? %> -

<%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %>

-<% end %> -<% unless @issue.assignable_versions.empty? %> -

<%= f.select :fixed_version_id, (@issue.assignable_versions.collect {|v| [v.name, v.id]}), :include_blank => true %>

-<% end %> -
-
diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_history.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/_history.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,21 @@ +<% reply_links = authorize_for('issues', 'edit') -%> +<% for journal in journals %> +
+

+ <%= avatar(journal.user, :size => "24") %> + <%= content_tag('a', '', :name => "note-#{journal.indice}")%> + <%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %>

+ + <% if journal.details.any? %> + + <% end %> + <%= render_notes(issue, journal, :reply_links => reply_links) unless journal.notes.blank? %> +
+ <%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %> +<% end %> + +<% heads_for_wiki_formatter if User.current.allowed_to?(:edit_issue_notes, issue.project) || User.current.allowed_to?(:edit_own_issue_notes, issue.project) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_history.rhtml --- a/app/views/issues/_history.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -<% reply_links = authorize_for('issues', 'edit') -%> -<% for journal in journals %> -
-

- <%= avatar(journal.user, :size => "24") %> - <%= content_tag('a', '', :name => "note-#{journal.indice}")%> - <%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %>

- - <% if journal.details.any? %> - - <% end %> - <%= render_notes(issue, journal, :reply_links => reply_links) unless journal.notes.blank? %> -
- <%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %> -<% end %> - -<% heads_for_wiki_formatter if User.current.allowed_to?(:edit_issue_notes, issue.project) || User.current.allowed_to?(:edit_own_issue_notes, issue.project) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_list.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/_list.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,37 @@ +<% form_tag({}) do -%> +<%= hidden_field_tag 'back_url', url_for(params) %> +
+ + + + <%= sort_header_tag('id', :caption => '#', :default_order => 'desc') %> + <% query.columns.each do |column| %> + <%= column_header(column) %> + <% end %> + + <% previous_group = false %> + + <% issue_list(issues) do |issue, level| -%> + <% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %> + <% reset_cycle %> + + + + <% previous_group = group %> + <% end %> + "> + + + <% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.css_classes %><% end %> + + <% end -%> + +
<%= link_to image_tag('toggle_check.png'), {}, :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;', + :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> +
+   + <%= group.blank? ? 'None' : column_content(@query.group_by_column, issue) %> (<%= @issue_count_by_group[group] %>) + <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", "toggleAllRowGroups(this)", :class => 'toggle-all') %> +
<%= check_box_tag("ids[]", issue.id, false, :id => nil) %><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %>
+
+<% end -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_list.rhtml --- a/app/views/issues/_list.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -<% form_tag({}) do -%> -<%= hidden_field_tag 'back_url', url_for(params) %> -
- - - - <%= sort_header_tag('id', :caption => '#', :default_order => 'desc') %> - <% query.columns.each do |column| %> - <%= column_header(column) %> - <% end %> - - <% previous_group = false %> - - <% issue_list(issues) do |issue, level| -%> - <% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %> - <% reset_cycle %> - - - - <% previous_group = group %> - <% end %> - "> - - - <% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.css_classes %><% end %> - - <% end -%> - -
<%= link_to image_tag('toggle_check.png'), {}, :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;', - :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> -
-   - <%= group.blank? ? 'None' : column_content(@query.group_by_column, issue) %> (<%= @issue_count_by_group[group] %>) - <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", "toggleAllRowGroups(this)", :class => 'toggle-all') %> -
<%= check_box_tag("ids[]", issue.id, false, :id => nil) %><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %>
-
-<% end -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_list_simple.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/_list_simple.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,29 @@ +<% if issues && issues.any? %> +<% form_tag({}) do %> + + + + + + + + + <% for issue in issues %> + + + + + + + <% end %> + +
#<%=l(:field_project)%><%=l(:field_tracker)%><%=l(:field_subject)%>
+ <%= check_box_tag("ids[]", issue.id, false, :style => 'display:none;') %> + <%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %> + <%= link_to_project(issue.project) %><%=h issue.tracker %> + <%= link_to h(truncate(issue.subject, :length => 60)), :controller => 'issues', :action => 'show', :id => issue %> (<%=h issue.status %>) +
+<% end %> +<% else %> +

<%= l(:label_no_data) %>

+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_list_simple.rhtml --- a/app/views/issues/_list_simple.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -<% if issues && issues.any? %> -<% form_tag({}) do %> - - - - - - - - - <% for issue in issues %> - - - - - - - <% end %> - -
#<%=l(:field_project)%><%=l(:field_tracker)%><%=l(:field_subject)%>
- <%= check_box_tag("ids[]", issue.id, false, :style => 'display:none;') %> - <%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %> - <%= link_to_project(issue.project) %><%=h issue.tracker %> - <%= link_to h(truncate(issue.subject, :length => 60)), :controller => 'issues', :action => 'show', :id => issue %> (<%=h issue.status %>) -
-<% end %> -<% else %> -

<%= l(:label_no_data) %>

-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_relations.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/_relations.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,37 @@ +
+<% if User.current.allowed_to?(:manage_issue_relations, @project) %> + <%= toggle_link l(:button_add), 'new-relation-form', {:focus => 'relation_issue_to_id'} %> +<% end %> +
+ +

<%=l(:label_related_issues)%>

+ +<% if @relations.present? %> +
+ +<% @relations.each do |relation| %> + + + + + + + + +<% end %> +
<%= check_box_tag("ids[]", relation.other_issue(@issue).id, false, :id => nil) %><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %> + <%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %> + <%= link_to_issue(relation.other_issue(@issue), :truncate => 60) %> +<%= relation.other_issue(@issue).status.name %><%= format_date(relation.other_issue(@issue).start_date) %><%= format_date(relation.other_issue(@issue).due_date) %><%= link_to_remote(image_tag('link_break.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation}, + :method => :post + }, :title => l(:label_relation_delete)) if authorize_for('issue_relations', 'destroy') %>
+
+<% end %> + +<% remote_form_for(:relation, @relation, + :url => {:controller => 'issue_relations', :action => 'new', :issue_id => @issue}, + :method => :post, + :complete => "Form.Element.focus('relation_issue_to_id');", + :html => {:id => 'new-relation-form', :style => (@relation ? '' : 'display: none;')}) do |f| %> +<%= render :partial => 'issue_relations/form', :locals => {:f => f}%> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_relations.rhtml --- a/app/views/issues/_relations.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -
-<% if User.current.allowed_to?(:manage_issue_relations, @project) %> - <%= toggle_link l(:button_add), 'new-relation-form', {:focus => 'relation_issue_to_id'} %> -<% end %> -
- -

<%=l(:label_related_issues)%>

- -<% if @relations.present? %> -
- -<% @relations.each do |relation| %> - - - - - - - - -<% end %> -
<%= check_box_tag("ids[]", relation.other_issue(@issue).id, false, :id => nil) %><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %> - <%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %> - <%= link_to_issue(relation.other_issue(@issue), :truncate => 60) %> -<%= relation.other_issue(@issue).status.name %><%= format_date(relation.other_issue(@issue).start_date) %><%= format_date(relation.other_issue(@issue).due_date) %><%= link_to_remote(image_tag('link_break.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation}, - :method => :post - }, :title => l(:label_relation_delete)) if authorize_for('issue_relations', 'destroy') %>
-
-<% end %> - -<% remote_form_for(:relation, @relation, - :url => {:controller => 'issue_relations', :action => 'new', :issue_id => @issue}, - :method => :post, - :complete => "Form.Element.focus('relation_issue_to_id');", - :html => {:id => 'new-relation-form', :style => (@relation ? '' : 'display: none;')}) do |f| %> -<%= render :partial => 'issue_relations/form', :locals => {:f => f}%> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_sidebar.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/_sidebar.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,17 @@ +

<%= l(:label_issue_plural) %>

+<%= link_to l(:label_issue_view_all), { :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 } %>
+<% if @project %> +<%= link_to l(:field_summary), :controller => 'reports', :action => 'issue_report', :id => @project %>
+<% end %> +<%= call_hook(:view_issues_sidebar_issues_bottom) %> + +<% 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 %> +<%= call_hook(:view_issues_sidebar_planning_bottom) %> + +<%= render_sidebar_queries %> +<%= call_hook(:view_issues_sidebar_queries_bottom) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/_sidebar.rhtml --- a/app/views/issues/_sidebar.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -

<%= l(:label_issue_plural) %>

-<%= link_to l(:label_issue_view_all), { :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 } %>
-<% if @project %> -<%= link_to l(:field_summary), :controller => 'reports', :action => 'issue_report', :id => @project %>
-<% end %> -<%= call_hook(:view_issues_sidebar_issues_bottom) %> - -<% 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 %> -<%= call_hook(:view_issues_sidebar_planning_bottom) %> - -<%= render_sidebar_queries %> -<%= call_hook(:view_issues_sidebar_queries_bottom) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/bulk_edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/bulk_edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,91 @@ +

<%= l(:label_bulk_edit_selected_issues) %>

+ + + +<% form_tag(:action => 'bulk_update') do %> +<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> +
+
+<%= l(:label_change_properties) %> + +
+

+ + <%= select_tag('issue[tracker_id]', "" + options_from_collection_for_select(@trackers, :id, :name)) %> +

+<% if @available_statuses.any? %> +

+ + <%= select_tag('issue[status_id]', "" + options_from_collection_for_select(@available_statuses, :id, :name)) %> +

+<% end %> +

+ + <%= select_tag('issue[priority_id]', "" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %> +

+

+ + <%= select_tag('issue[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') + + content_tag('option', l(:label_nobody), :value => 'none') + + options_from_collection_for_select(@assignables, :id, :name)) %> +

+<% if @project %> +

+ + <%= select_tag('issue[category_id]', content_tag('option', l(:label_no_change_option), :value => '') + + content_tag('option', l(:label_none), :value => 'none') + + options_from_collection_for_select(@project.issue_categories, :id, :name)) %> +

+<% end %> +<% #TODO: allow editing versions when multiple projects %> +<% if @project %> +

+ + <%= select_tag('issue[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') + + content_tag('option', l(:label_none), :value => 'none') + + version_options_for_select(@project.shared_versions.open.sort)) %> +

+<% end %> + +<% @custom_fields.each do |custom_field| %> +

<%= custom_field_tag_for_bulk_edit('issue', custom_field, @projects) %>

+<% end %> + +<%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %> +
+ +
+<% if @project && User.current.allowed_to?(:manage_subtasks, @project) %> +

+ + <%= text_field_tag 'issue[parent_issue_id]', '', :size => 10 %> +

+
+<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:project_id => @project) }')" %> +<% end %> +

+ + <%= text_field_tag 'issue[start_date]', '', :size => 10 %><%= calendar_for('issue_start_date') %> +

+

+ + <%= text_field_tag 'issue[due_date]', '', :size => 10 %><%= calendar_for('issue_due_date') %> +

+<% if Issue.use_field_for_done_ratio? %> +

+ + <%= select_tag 'issue[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %> +

+<% end %> +
+ +
+ +
<%= l(:field_notes) %> +<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> +<%= wikitoolbar_for 'notes' %> +
+
+ +

<%= submit_tag l(:button_submit) %>

+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/bulk_edit.rhtml --- a/app/views/issues/bulk_edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,91 +0,0 @@ -

<%= l(:label_bulk_edit_selected_issues) %>

- - - -<% form_tag(:action => 'bulk_update') do %> -<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> -
-
-<%= l(:label_change_properties) %> - -
-

- - <%= select_tag('issue[tracker_id]', "" + options_from_collection_for_select(@trackers, :id, :name)) %> -

-<% if @available_statuses.any? %> -

- - <%= select_tag('issue[status_id]', "" + options_from_collection_for_select(@available_statuses, :id, :name)) %> -

-<% end %> -

- - <%= select_tag('issue[priority_id]', "" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %> -

-

- - <%= select_tag('issue[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') + - content_tag('option', l(:label_nobody), :value => 'none') + - options_from_collection_for_select(@assignables, :id, :name)) %> -

-<% if @project %> -

- - <%= select_tag('issue[category_id]', content_tag('option', l(:label_no_change_option), :value => '') + - content_tag('option', l(:label_none), :value => 'none') + - options_from_collection_for_select(@project.issue_categories, :id, :name)) %> -

-<% end %> -<% #TODO: allow editing versions when multiple projects %> -<% if @project %> -

- - <%= select_tag('issue[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') + - content_tag('option', l(:label_none), :value => 'none') + - version_options_for_select(@project.shared_versions.open.sort)) %> -

-<% end %> - -<% @custom_fields.each do |custom_field| %> -

<%= custom_field_tag_for_bulk_edit('issue', custom_field, @projects) %>

-<% end %> - -<%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %> -
- -
-<% if @project && User.current.allowed_to?(:manage_subtasks, @project) %> -

- - <%= text_field_tag 'issue[parent_issue_id]', '', :size => 10 %> -

-
-<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:project_id => @project) }')" %> -<% end %> -

- - <%= text_field_tag 'issue[start_date]', '', :size => 10 %><%= calendar_for('issue_start_date') %> -

-

- - <%= text_field_tag 'issue[due_date]', '', :size => 10 %><%= calendar_for('issue_due_date') %> -

-<% if Issue.use_field_for_done_ratio? %> -

- - <%= select_tag 'issue[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %> -

-<% end %> -
- -
- -
<%= l(:field_notes) %> -<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> -<%= wikitoolbar_for 'notes' %> -
-
- -

<%= submit_tag l(:button_submit) %>

-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/destroy.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/destroy.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,15 @@ +

<%= l(:label_confirmation) %>

+ +<% form_tag do %> +<%= @issues.collect {|i| hidden_field_tag 'ids[]', i.id } %> +
+

<%= l(:text_destroy_time_entries_question, :hours => number_with_precision(@hours, :precision => 2)) %>

+

+
+
+ +<%= text_field_tag 'reassign_to_id', params[:reassign_to_id], :size => 6, :onfocus => '$("todo_reassign").checked=true;' %> +

+
+<%= submit_tag l(:button_apply) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/destroy.rhtml --- a/app/views/issues/destroy.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -

<%= l(:label_confirmation) %>

- -<% form_tag do %> -<%= @issues.collect {|i| hidden_field_tag 'ids[]', i.id } %> -
-

<%= l(:text_destroy_time_entries_question, :hours => number_with_precision(@hours, :precision => 2)) %>

-

-
-
- -<%= text_field_tag 'reassign_to_id', params[:reassign_to_id], :size => 6, :onfocus => '$("todo_reassign").checked=true;' %> -

-
-<%= submit_tag l(:button_apply) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%=h "#{@issue.tracker.name} ##{@issue.id}" %>

+ +<%= render :partial => 'edit' %> +<% content_for :header_tags do %> + <%= robot_exclusion_tag %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/edit.rhtml --- a/app/views/issues/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%=h "#{@issue.tracker.name} ##{@issue.id}" %>

- -<%= render :partial => 'edit' %> -<% content_for :header_tags do %> - <%= robot_exclusion_tag %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/index.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,73 @@ +
+<% if !@query.new_record? && @query.editable_by?(User.current) %> + <%= link_to l(:button_edit), {:controller => 'queries', :action => 'edit', :id => @query}, :class => 'icon icon-edit' %> + <%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => @query}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> +<% end %> +
+ +

<%= @query.new_record? ? l(:label_issue_plural) : h(@query.name) %>

+<% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %> + +<% form_tag({ :controller => 'issues', :action => 'index', :project_id => @project }, :method => :get, :id => 'query_form') do %> + <%= hidden_field_tag 'set_filter', '1' %> +
+
"> + <%= l(:label_filter_plural) %> +
"> + <%= render :partial => 'queries/filters', :locals => {:query => @query} %> +
+
+ +
+

+ + <%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %> + <%= link_to l(:button_clear), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload' %> + <% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %> + <%= link_to_function l(:button_save), "$('query_form').action='#{ url_for :controller => 'queries', :action => 'new', :project_id => @project }'; submit_query_form('query_form')", :class => 'icon icon-save' %> + <% end %> +

+<% end %> + +<%= error_messages_for 'query' %> +<% if @query.valid? %> +<% if @issues.empty? %> +

<%= l(:label_no_data) %>

+<% else %> +<%= render :partial => 'issues/list', :locals => {:issues => @issues, :query => @query} %> +

<%= pagination_links_full @issue_pages, @issue_count %>

+<% end %> + +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => params.merge(:key => User.current.rss_key) %> + <%= f.link_to 'CSV', :url => params %> + <%= f.link_to 'PDF', :url => params %> +<% end %> + +<% end %> +<%= call_hook(:view_issues_index_bottom, { :issues => @issues, :project => @project, :query => @query }) %> + +<% content_for :sidebar do %> + <%= render :partial => 'issues/sidebar' %> +<% end %> + +<% content_for :header_tags do %> + <%= auto_discovery_link_tag(:atom, {:query_id => @query, :format => 'atom', :page => nil, :key => User.current.rss_key}, :title => l(:label_issue_plural)) %> + <%= auto_discovery_link_tag(:atom, {:controller => 'journals', :action => 'index', :query_id => @query, :format => 'atom', :page => nil, :key => User.current.rss_key}, :title => l(:label_changes_details)) %> +<% end %> + +<%= context_menu issues_context_menu_path %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/index.rhtml --- a/app/views/issues/index.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,73 +0,0 @@ -
-<% if !@query.new_record? && @query.editable_by?(User.current) %> - <%= link_to l(:button_edit), {:controller => 'queries', :action => 'edit', :id => @query}, :class => 'icon icon-edit' %> - <%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => @query}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> -<% end %> -
- -

<%= @query.new_record? ? l(:label_issue_plural) : h(@query.name) %>

-<% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %> - -<% form_tag({ :controller => 'issues', :action => 'index', :project_id => @project }, :method => :get, :id => 'query_form') do %> - <%= hidden_field_tag 'set_filter', '1' %> -
-
"> - <%= l(:label_filter_plural) %> -
"> - <%= render :partial => 'queries/filters', :locals => {:query => @query} %> -
-
- -
-

- - <%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %> - <%= link_to l(:button_clear), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload' %> - <% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %> - <%= link_to_function l(:button_save), "$('query_form').action='#{ url_for :controller => 'queries', :action => 'new', :project_id => @project }'; submit_query_form('query_form')", :class => 'icon icon-save' %> - <% end %> -

-<% end %> - -<%= error_messages_for 'query' %> -<% if @query.valid? %> -<% if @issues.empty? %> -

<%= l(:label_no_data) %>

-<% else %> -<%= render :partial => 'issues/list', :locals => {:issues => @issues, :query => @query} %> -

<%= pagination_links_full @issue_pages, @issue_count %>

-<% end %> - -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => params.merge(:key => User.current.rss_key) %> - <%= f.link_to 'CSV', :url => params %> - <%= f.link_to 'PDF', :url => params %> -<% end %> - -<% end %> -<%= call_hook(:view_issues_index_bottom, { :issues => @issues, :project => @project, :query => @query }) %> - -<% content_for :sidebar do %> - <%= render :partial => 'issues/sidebar' %> -<% end %> - -<% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, {:query_id => @query, :format => 'atom', :page => nil, :key => User.current.rss_key}, :title => l(:label_issue_plural)) %> - <%= auto_discovery_link_tag(:atom, {:controller => 'journals', :action => 'index', :query_id => @query, :format => 'atom', :page => nil, :key => User.current.rss_key}, :title => l(:label_changes_details)) %> -<% end %> - -<%= context_menu issues_context_menu_path %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/new.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/new.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,27 @@ +

<%=l(:label_issue_new)%>

+ +<% labelled_tabular_form_for :issue, @issue, :url => {:controller => 'issues', :action => 'create', :project_id => @project}, + :html => {:multipart => true, :id => 'issue-form', :class => 'tabular new-issue-form'} do |f| %> + <%= error_messages_for 'issue' %> +
+ <%= render :partial => 'issues/form', :locals => {:f => f} %> +
+ <%= submit_tag l(:button_create) %> + <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> + <%= link_to_remote l(:label_preview), + { :url => preview_issue_path(:project_id => @project), + :method => 'post', + :update => 'preview', + :with => "Form.serialize('issue-form')", + :complete => "Element.scrollTo('preview')" + }, :accesskey => accesskey(:preview) %> + + <%= javascript_tag "Form.Element.focus('issue_subject');" %> +<% end %> + +
+ +<% content_for :header_tags do %> + <%= stylesheet_link_tag 'scm' %> + <%= robot_exclusion_tag %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/new.rhtml --- a/app/views/issues/new.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -

<%=l(:label_issue_new)%>

- -<% labelled_tabular_form_for :issue, @issue, :url => {:controller => 'issues', :action => 'create', :project_id => @project}, - :html => {:multipart => true, :id => 'issue-form', :class => 'tabular new-issue-form'} do |f| %> - <%= error_messages_for 'issue' %> -
- <%= render :partial => 'issues/form', :locals => {:f => f} %> -
- <%= submit_tag l(:button_create) %> - <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> - <%= link_to_remote l(:label_preview), - { :url => preview_issue_path(:project_id => @project), - :method => 'post', - :update => 'preview', - :with => "Form.serialize('issue-form')", - :complete => "Element.scrollTo('preview')" - }, :accesskey => accesskey(:preview) %> - - <%= javascript_tag "Form.Element.focus('issue_subject');" %> -<% end %> - -
- -<% content_for :header_tags do %> - <%= stylesheet_link_tag 'scm' %> - <%= robot_exclusion_tag %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/show.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/issues/show.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,137 @@ +<%= render :partial => 'action_menu' %> + +

<%= issue_heading(@issue) %>

+ +
+ <%= avatar(@issue.author, :size => "50") %> + +
+<%= render_issue_subject_with_tree(@issue) %> +
+

+ <%= authoring @issue.created_on, @issue.author %>. + <% if @issue.created_on != @issue.updated_on %> + <%= l(:label_updated_time, time_tag(@issue.updated_on)) %>. + <% end %> +

+ + + + + + + + + + + + + + + + + <% if User.current.allowed_to?(:view_time_entries, @project) %> + + + <% end %> + + + + <% if @issue.estimated_hours %> + + <% end %> + +<%= render_custom_fields_rows(@issue) %> +<%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> +
<%=l(:field_status)%>:<%= @issue.status.name %><%=l(:field_start_date)%>:<%= format_date(@issue.start_date) %>
<%=l(:field_priority)%>:<%= @issue.priority.name %><%=l(:field_due_date)%>:<%= format_date(@issue.due_date) %>
<%=l(:field_assigned_to)%>:<%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %><%=l(:field_done_ratio)%>:<%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %>
<%=l(:field_category)%>:<%=h @issue.category ? @issue.category.name : "-" %><%=l(:label_spent_time)%>:<%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}) : "-" %>
<%=l(:field_fixed_version)%>:<%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %><%=l(:field_estimated_hours)%>:<%= l_hours(@issue.estimated_hours) %>
+ +<% if @issue.description? || @issue.attachments.any? -%> +
+<% if @issue.description? %> +
+ <%= link_to_remote_if_authorized(l(:button_quote), { :url => {:controller => 'journals', :action => 'new', :id => @issue} }, :class => 'icon icon-comment') %> +
+ +

<%=l(:field_description)%>

+
+ <%= textilizable @issue, :description, :attachments => @issue.attachments %> +
+<% end %> +<%= link_to_attachments @issue %> +<% end -%> + +<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %> + +<% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %> +
+
+
+ <%= link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => @project, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %> +
+

<%=l(:label_subtask_plural)%>

+<%= render_descendants_tree(@issue) unless @issue.leaf? %> +
+<% end %> + +<% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %> +
+
+<%= render :partial => 'relations' %> +
+<% end %> + +
+ +<% if @changesets.present? %> +
+

<%=l(:label_associated_revisions)%>

+<%= render :partial => 'changesets', :locals => { :changesets => @changesets} %> +
+<% end %> + +<% if @journals.present? %> +
+

<%=l(:label_history)%>

+<%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %> +
+<% end %> + + +
+<%= render :partial => 'action_menu' %> + +
+<% if authorize_for('issues', 'edit') %> + +<% end %> + +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> + <%= f.link_to 'PDF' %> +<% end %> + +<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> + +<% content_for :sidebar do %> + <%= render :partial => 'issues/sidebar' %> + + <% if User.current.allowed_to?(:add_issue_watchers, @project) || + (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %> +
+ <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %> +
+ <% end %> +<% end %> + +<% content_for :header_tags do %> + <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %> + <%= stylesheet_link_tag 'scm' %> + <%= javascript_include_tag 'context_menu' %> + <%= stylesheet_link_tag 'context_menu' %> + <%= stylesheet_link_tag 'context_menu_rtl' if l(:direction) == 'rtl' %> +<% end %> + +<%= javascript_tag "new ContextMenu('#{issues_context_menu_path}')" %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/issues/show.rhtml --- a/app/views/issues/show.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,137 +0,0 @@ -<%= render :partial => 'action_menu' %> - -

<%= issue_heading(@issue) %>

- -
- <%= avatar(@issue.author, :size => "50") %> - -
-<%= render_issue_subject_with_tree(@issue) %> -
-

- <%= authoring @issue.created_on, @issue.author %>. - <% if @issue.created_on != @issue.updated_on %> - <%= l(:label_updated_time, time_tag(@issue.updated_on)) %>. - <% end %> -

- - - - - - - - - - - - - - - - - <% if User.current.allowed_to?(:view_time_entries, @project) %> - - - <% end %> - - - - <% if @issue.estimated_hours %> - - <% end %> - -<%= render_custom_fields_rows(@issue) %> -<%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> -
<%=l(:field_status)%>:<%= @issue.status.name %><%=l(:field_start_date)%>:<%= format_date(@issue.start_date) %>
<%=l(:field_priority)%>:<%= @issue.priority.name %><%=l(:field_due_date)%>:<%= format_date(@issue.due_date) %>
<%=l(:field_assigned_to)%>:<%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %><%=l(:field_done_ratio)%>:<%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %>
<%=l(:field_category)%>:<%=h @issue.category ? @issue.category.name : "-" %><%=l(:label_spent_time)%>:<%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}) : "-" %>
<%=l(:field_fixed_version)%>:<%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %><%=l(:field_estimated_hours)%>:<%= l_hours(@issue.estimated_hours) %>
- -<% if @issue.description? || @issue.attachments.any? -%> -
-<% if @issue.description? %> -
- <%= link_to_remote_if_authorized(l(:button_quote), { :url => {:controller => 'journals', :action => 'new', :id => @issue} }, :class => 'icon icon-comment') %> -
- -

<%=l(:field_description)%>

-
- <%= textilizable @issue, :description, :attachments => @issue.attachments %> -
-<% end %> -<%= link_to_attachments @issue %> -<% end -%> - -<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %> - -<% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %> -
-
-
- <%= link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => @project, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %> -
-

<%=l(:label_subtask_plural)%>

-<%= render_descendants_tree(@issue) unless @issue.leaf? %> -
-<% end %> - -<% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %> -
-
-<%= render :partial => 'relations' %> -
-<% end %> - -
- -<% if @changesets.present? %> -
-

<%=l(:label_associated_revisions)%>

-<%= render :partial => 'changesets', :locals => { :changesets => @changesets} %> -
-<% end %> - -<% if @journals.present? %> -
-

<%=l(:label_history)%>

-<%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %> -
-<% end %> - - -
-<%= render :partial => 'action_menu' %> - -
-<% if authorize_for('issues', 'edit') %> - -<% end %> - -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> - <%= f.link_to 'PDF' %> -<% end %> - -<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> - -<% content_for :sidebar do %> - <%= render :partial => 'issues/sidebar' %> - - <% if User.current.allowed_to?(:add_issue_watchers, @project) || - (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %> -
- <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %> -
- <% end %> -<% end %> - -<% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %> - <%= stylesheet_link_tag 'scm' %> - <%= javascript_include_tag 'context_menu' %> - <%= stylesheet_link_tag 'context_menu' %> - <%= stylesheet_link_tag 'context_menu_rtl' if l(:direction) == 'rtl' %> -<% end %> - -<%= javascript_tag "new ContextMenu('#{issues_context_menu_path}')" %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/journals/_notes_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/journals/_notes_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,21 @@ +<% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %> + <%= text_area_tag :notes, @journal.notes, + :id => "journal_#{@journal.id}_notes", + :class => 'wiki-edit', + :rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %> + <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %> +

<%= submit_tag l(:button_save) %> + <%= link_to_remote l(:label_preview), + { :url => preview_issue_path(:project_id => @project, :id => @journal.issue), + :method => 'post', + :update => "journal_#{@journal.id}_preview", + :with => "Form.serialize('journal-#{@journal.id}-form')", + :complete => "Element.scrollTo('journal_#{@journal.id}_preview')" + }, :accesskey => accesskey(:preview) %> + | + <%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " + + "Element.show('journal-#{@journal.id}-notes'); return false;" %>

+ +
+<% end %> +<%= wikitoolbar_for "journal_#{@journal.id}_notes" %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/journals/_notes_form.rhtml --- a/app/views/journals/_notes_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -<% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %> - <%= text_area_tag :notes, @journal.notes, - :id => "journal_#{@journal.id}_notes", - :class => 'wiki-edit', - :rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %> - <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %> -

<%= submit_tag l(:button_save) %> - <%= link_to_remote l(:label_preview), - { :url => preview_issue_path(:project_id => @project, :id => @journal.issue), - :method => 'post', - :update => "journal_#{@journal.id}_preview", - :with => "Form.serialize('journal-#{@journal.id}-form')", - :complete => "Element.scrollTo('journal_#{@journal.id}_preview')" - }, :accesskey => accesskey(:preview) %> - | - <%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " + - "Element.show('journal-#{@journal.id}-notes'); return false;" %>

- -
-<% end %> -<%= wikitoolbar_for "journal_#{@journal.id}_notes" %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/layouts/admin.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/layouts/admin.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,8 @@ +<% unless controller_name == 'admin' && action_name == 'index' %> + <% content_for :sidebar do %> +

<%=l(:label_administration)%>

+ <%= render :partial => 'admin/menu' %> + <% end %> +<% end %> + +<%= render :file => "layouts/base" %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/layouts/admin.rhtml --- a/app/views/layouts/admin.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -<% unless controller_name == 'admin' && action_name == 'index' %> - <% content_for :sidebar do %> -

<%=l(:label_administration)%>

- <%= render :partial => 'admin/menu' %> - <% end %> -<% end %> - -<%= render :file => "layouts/base" %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/layouts/base.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/layouts/base.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,81 @@ + + + + +<%=h html_title %> + + +<%= csrf_meta_tag %> +<%= favicon %> +<%= stylesheet_link_tag 'application', :media => 'all' %> +<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> +<%= javascript_heads %> +<%= heads_for_theme %> + +<%= call_hook :view_layouts_base_html_head %> + +<%= yield :header_tags -%> + + +
+
+
+
+ <%= render_menu :account_menu -%> +
+ <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}", :id => 'loggedas') if User.current.logged? %> + <%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%> +
+ + + +<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %> + + +
+ <%= render_flash_messages %> + <%= yield %> + <%= call_hook :view_layouts_base_content %> +
+
+
+ + + + +
+ +<%= call_hook :view_layouts_base_body_bottom %> + + diff -r df51e8ff578d -r c6c2cbd0afee app/views/layouts/base.rhtml --- a/app/views/layouts/base.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,81 +0,0 @@ - - - - -<%=h html_title %> - - -<%= csrf_meta_tag %> -<%= favicon %> -<%= stylesheet_link_tag 'application', :media => 'all' %> -<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> -<%= javascript_heads %> -<%= heads_for_theme %> - -<%= call_hook :view_layouts_base_html_head %> - -<%= yield :header_tags -%> - - -
-
-
-
- <%= render_menu :account_menu -%> -
- <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}", :id => 'loggedas') if User.current.logged? %> - <%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%> -
- - - -<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %> - - -
- <%= render_flash_messages %> - <%= yield %> - <%= call_hook :view_layouts_base_content %> -
-
-
- - - - -
- -<%= call_hook :view_layouts_base_body_bottom %> - - diff -r df51e8ff578d -r c6c2cbd0afee app/views/ldap_auth_sources/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/ldap_auth_sources/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,44 @@ +<%= error_messages_for 'auth_source' %> + +
+ +

+<%= text_field 'auth_source', 'name' %>

+ +

+<%= text_field 'auth_source', 'host' %>

+ +

+<%= text_field 'auth_source', 'port', :size => 6 %> <%= check_box 'auth_source', 'tls' %> LDAPS

+ +

+<%= text_field 'auth_source', 'account' %>

+ +

+<%= password_field 'auth_source', 'account_password', :name => 'ignore', + :value => ((@auth_source.new_record? || @auth_source.account_password.blank?) ? '' : ('x'*15)), + :onfocus => "this.value=''; this.name='auth_source[account_password]';", + :onchange => "this.name='auth_source[account_password]';" %>

+ +

+<%= text_field 'auth_source', 'base_dn', :size => 60 %>

+ +

+<%= check_box 'auth_source', 'onthefly_register' %>

+
+ +
<%=l(:label_attribute_plural)%> +

+<%= text_field 'auth_source', 'attr_login', :size => 20 %>

+ +

+<%= text_field 'auth_source', 'attr_firstname', :size => 20 %>

+ +

+<%= text_field 'auth_source', 'attr_lastname', :size => 20 %>

+ +

+<%= text_field 'auth_source', 'attr_mail', :size => 20 %>

+
+ + diff -r df51e8ff578d -r c6c2cbd0afee app/views/ldap_auth_sources/_form.rhtml --- a/app/views/ldap_auth_sources/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -<%= error_messages_for 'auth_source' %> - -
- -

-<%= text_field 'auth_source', 'name' %>

- -

-<%= text_field 'auth_source', 'host' %>

- -

-<%= text_field 'auth_source', 'port', :size => 6 %> <%= check_box 'auth_source', 'tls' %> LDAPS

- -

-<%= text_field 'auth_source', 'account' %>

- -

-<%= password_field 'auth_source', 'account_password', :name => 'ignore', - :value => ((@auth_source.new_record? || @auth_source.account_password.blank?) ? '' : ('x'*15)), - :onfocus => "this.value=''; this.name='auth_source[account_password]';", - :onchange => "this.name='auth_source[account_password]';" %>

- -

-<%= text_field 'auth_source', 'base_dn', :size => 60 %>

- -

-<%= check_box 'auth_source', 'onthefly_register' %>

-
- -
<%=l(:label_attribute_plural)%> -

-<%= text_field 'auth_source', 'attr_login', :size => 20 %>

- -

-<%= text_field 'auth_source', 'attr_firstname', :size => 20 %>

- -

-<%= text_field 'auth_source', 'attr_lastname', :size => 20 %>

- -

-<%= text_field 'auth_source', 'attr_mail', :size => 20 %>

-
- - diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/_issue_text_html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/_issue_text_html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,15 @@ +

<%= link_to(h("#{issue.tracker.name} ##{issue.id}: #{issue.subject}"), issue_url) %>

+ + + +<%= textilizable(issue, :description, :only_path => false) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/_issue_text_html.rhtml --- a/app/views/mailer/_issue_text_html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -

<%= link_to(h("#{issue.tracker.name} ##{issue.id}: #{issue.subject}"), issue_url) %>

- - - -<%= textilizable(issue, :description, :only_path => false) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/_issue_text_plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/_issue_text_plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,13 @@ +<%= "#{issue.tracker.name} ##{issue.id}: #{issue.subject}" %> +<%= issue_url %> + +<%=l(:field_author)%>: <%= issue.author %> +<%=l(:field_status)%>: <%= issue.status %> +<%=l(:field_priority)%>: <%= issue.priority %> +<%=l(:field_assigned_to)%>: <%= issue.assigned_to %> +<%=l(:field_category)%>: <%= issue.category %> +<%=l(:field_fixed_version)%>: <%= issue.fixed_version %> +<% issue.custom_field_values.each do |c| %><%= c.custom_field.name %>: <%= show_value(c) %> +<% end %> + +<%= issue.description %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/_issue_text_plain.rhtml --- a/app/views/mailer/_issue_text_plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -<%= "#{issue.tracker.name} ##{issue.id}: #{issue.subject}" %> -<%= issue_url %> - -<%=l(:field_author)%>: <%= issue.author %> -<%=l(:field_status)%>: <%= issue.status %> -<%=l(:field_priority)%>: <%= issue.priority %> -<%=l(:field_assigned_to)%>: <%= issue.assigned_to %> -<%=l(:field_category)%>: <%= issue.category %> -<%=l(:field_fixed_version)%>: <%= issue.fixed_version %> -<% issue.custom_field_values.each do |c| %><%= c.custom_field.name %>: <%= show_value(c) %> -<% end %> - -<%= issue.description %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/account_activated.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/account_activated.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,2 @@ +

<%= l(:notice_account_activated) %>

+

<%= l(:label_login) %>: <%= link_to @login_url, @login_url %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/account_activated.text.html.rhtml --- a/app/views/mailer/account_activated.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -

<%= l(:notice_account_activated) %>

-

<%= l(:label_login) %>: <%= link_to @login_url, @login_url %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/account_activated.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/account_activated.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,2 @@ +<%= l(:notice_account_activated) %> +<%= l(:label_login) %>: <%= @login_url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/account_activated.text.plain.rhtml --- a/app/views/mailer/account_activated.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -<%= l(:notice_account_activated) %> -<%= l(:label_login) %>: <%= @login_url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/account_activation_request.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/account_activation_request.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,2 @@ +

<%= l(:mail_body_account_activation_request, h(@user.login)) %>

+

<%= link_to @url, @url %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/account_activation_request.text.html.rhtml --- a/app/views/mailer/account_activation_request.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -

<%= l(:mail_body_account_activation_request, h(@user.login)) %>

-

<%= link_to @url, @url %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/account_activation_request.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/account_activation_request.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,2 @@ +<%= l(:mail_body_account_activation_request, @user.login) %> +<%= @url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/account_activation_request.text.plain.rhtml --- a/app/views/mailer/account_activation_request.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -<%= l(:mail_body_account_activation_request, @user.login) %> -<%= @url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/account_information.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/account_information.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,11 @@ +<% if @user.auth_source %> +

<%= l(:mail_body_account_information_external, h(@user.auth_source.name)) %>

+<% else %> +

<%= l(:mail_body_account_information) %>:

+ +<% end %> + +

<%= l(:label_login) %>: <%= auto_link(@login_url) %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/account_information.text.html.rhtml --- a/app/views/mailer/account_information.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -<% if @user.auth_source %> -

<%= l(:mail_body_account_information_external, h(@user.auth_source.name)) %>

-<% else %> -

<%= l(:mail_body_account_information) %>:

- -<% end %> - -

<%= l(:label_login) %>: <%= auto_link(@login_url) %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/account_information.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/account_information.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +<% if @user.auth_source %><%= l(:mail_body_account_information_external, @user.auth_source.name) %> +<% else %><%= l(:mail_body_account_information) %>: +* <%= l(:field_login) %>: <%= @user.login %> +* <%= l(:field_password) %>: <%= @password %> +<% end %> +<%= l(:label_login) %>: <%= @login_url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/account_information.text.plain.rhtml --- a/app/views/mailer/account_information.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -<% if @user.auth_source %><%= l(:mail_body_account_information_external, @user.auth_source.name) %> -<% else %><%= l(:mail_body_account_information) %>: -* <%= l(:field_login) %>: <%= @user.login %> -* <%= l(:field_password) %>: <%= @password %> -<% end %> -<%= l(:label_login) %>: <%= @login_url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/attachments_added.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/attachments_added.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,5 @@ +<%= link_to @added_to, @added_to_url %>
+ + diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/attachments_added.text.html.rhtml --- a/app/views/mailer/attachments_added.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -<%= link_to @added_to, @added_to_url %>
- - diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/attachments_added.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/attachments_added.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,4 @@ +<%= @added_to %><% @attachments.each do |attachment | %> +- <%= attachment.filename %><% end %> + +<%= @added_to_url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/attachments_added.text.plain.rhtml --- a/app/views/mailer/attachments_added.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -<%= @added_to %><% @attachments.each do |attachment | %> -- <%= attachment.filename %><% end %> - -<%= @added_to_url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/document_added.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/document_added.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,3 @@ +<%= link_to(h(@document.title), @document_url) %> (<%=h @document.category.name %>)
+
+<%= textilizable(@document, :description, :only_path => false) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/document_added.text.html.rhtml --- a/app/views/mailer/document_added.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -<%= link_to(h(@document.title), @document_url) %> (<%=h @document.category.name %>)
-
-<%= textilizable(@document, :description, :only_path => false) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/document_added.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/document_added.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,4 @@ +<%= @document.title %> (<%= @document.category.name %>) +<%= @document_url %> + +<%= @document.description %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/document_added.text.plain.rhtml --- a/app/views/mailer/document_added.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -<%= @document.title %> (<%= @document.category.name %>) -<%= @document_url %> - -<%= @document.description %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/issue_add.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/issue_add.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,3 @@ +<%= l(:text_issue_added, :id => "##{@issue.id}", :author => h(@issue.author)) %> +
+<%= render :partial => "issue_text_html", :locals => { :issue => @issue, :issue_url => @issue_url } %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/issue_add.text.html.rhtml --- a/app/views/mailer/issue_add.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -<%= l(:text_issue_added, :id => "##{@issue.id}", :author => h(@issue.author)) %> -
-<%= render :partial => "issue_text_html", :locals => { :issue => @issue, :issue_url => @issue_url } %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/issue_add.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/issue_add.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,4 @@ +<%= l(:text_issue_added, :id => "##{@issue.id}", :author => @issue.author) %> + +---------------------------------------- +<%= render :partial => "issue_text_plain", :locals => { :issue => @issue, :issue_url => @issue_url } %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/issue_add.text.plain.rhtml --- a/app/views/mailer/issue_add.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -<%= l(:text_issue_added, :id => "##{@issue.id}", :author => @issue.author) %> - ----------------------------------------- -<%= render :partial => "issue_text_plain", :locals => { :issue => @issue, :issue_url => @issue_url } %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/issue_edit.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/issue_edit.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,11 @@ +<%= l(:text_issue_updated, :id => "##{@issue.id}", :author => h(@journal.user)) %> + + + +<%= textilizable(@journal, :notes, :only_path => false) %> +
+<%= render :partial => "issue_text_html", :locals => { :issue => @issue, :issue_url => @issue_url } %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/issue_edit.text.html.rhtml --- a/app/views/mailer/issue_edit.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -<%= l(:text_issue_updated, :id => "##{@issue.id}", :author => h(@journal.user)) %> - - - -<%= textilizable(@journal, :notes, :only_path => false) %> -
-<%= render :partial => "issue_text_html", :locals => { :issue => @issue, :issue_url => @issue_url } %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/issue_edit.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/issue_edit.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,9 @@ +<%= l(:text_issue_updated, :id => "##{@issue.id}", :author => @journal.user) %> + +<% for detail in @journal.details -%> +<%= show_detail(detail, true) %> +<% end -%> + +<%= @journal.notes if @journal.notes? %> +---------------------------------------- +<%= render :partial => "issue_text_plain", :locals => { :issue => @issue, :issue_url => @issue_url } %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/issue_edit.text.plain.rhtml --- a/app/views/mailer/issue_edit.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -<%= l(:text_issue_updated, :id => "##{@issue.id}", :author => @journal.user) %> - -<% for detail in @journal.details -%> -<%= show_detail(detail, true) %> -<% end -%> - -<%= @journal.notes if @journal.notes? %> ----------------------------------------- -<%= render :partial => "issue_text_plain", :locals => { :issue => @issue, :issue_url => @issue_url } %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/lost_password.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/lost_password.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,4 @@ +

<%= l(:mail_body_lost_password) %>
+<%= auto_link(@url) %>

+ +

<%= l(:field_login) %>: <%=h @token.user.login %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/lost_password.text.html.rhtml --- a/app/views/mailer/lost_password.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -

<%= l(:mail_body_lost_password) %>
-<%= auto_link(@url) %>

- -

<%= l(:field_login) %>: <%=h @token.user.login %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/lost_password.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/lost_password.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,4 @@ +<%= l(:mail_body_lost_password) %> +<%= @url %> + +<%= l(:field_login) %>: <%= @token.user.login %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/lost_password.text.plain.rhtml --- a/app/views/mailer/lost_password.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -<%= l(:mail_body_lost_password) %> -<%= @url %> - -<%= l(:field_login) %>: <%= @token.user.login %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/message_posted.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/message_posted.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,4 @@ +

<%=h @message.board.project.name %> - <%=h @message.board.name %>: <%= link_to(h(@message.subject), @message_url) %>

+<%=h @message.author %> + +<%= textilizable(@message, :content, :only_path => false) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/message_posted.text.html.rhtml --- a/app/views/mailer/message_posted.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -

<%=h @message.board.project.name %> - <%=h @message.board.name %>: <%= link_to(h(@message.subject), @message_url) %>

-<%=h @message.author %> - -<%= textilizable(@message, :content, :only_path => false) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/message_posted.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/message_posted.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,4 @@ +<%= @message_url %> +<%= @message.author %> + +<%= @message.content %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/message_posted.text.plain.rhtml --- a/app/views/mailer/message_posted.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -<%= @message_url %> -<%= @message.author %> - -<%= @message.content %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/news_added.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/news_added.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,4 @@ +

<%= link_to(h(@news.title), @news_url) %>

+<%=h @news.author.name %> + +<%= textilizable(@news, :description, :only_path => false) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/news_added.text.html.rhtml --- a/app/views/mailer/news_added.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -

<%= link_to(h(@news.title), @news_url) %>

-<%=h @news.author.name %> - -<%= textilizable(@news, :description, :only_path => false) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/news_added.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/news_added.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,5 @@ +<%= @news.title %> +<%= @news_url %> +<%= @news.author.name %> + +<%= @news.description %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/news_added.text.plain.rhtml --- a/app/views/mailer/news_added.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -<%= @news.title %> -<%= @news_url %> -<%= @news.author.name %> - -<%= @news.description %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/news_comment_added.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/news_comment_added.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,5 @@ +

<%= link_to(h(@news.title), @news_url) %>

+ +

<%= l(:text_user_wrote, :value => h(@comment.author)) %>

+ +<%= textilizable @comment, :comments, :only_path => false %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/news_comment_added.text.html.rhtml --- a/app/views/mailer/news_comment_added.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -

<%= link_to(h(@news.title), @news_url) %>

- -

<%= l(:text_user_wrote, :value => h(@comment.author)) %>

- -<%= textilizable @comment, :comments, :only_path => false %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/news_comment_added.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/news_comment_added.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +<%= @news.title %> +<%= @news_url %> + +<%= l(:text_user_wrote, :value => @comment.author) %> + +<%= @comment.comments %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/news_comment_added.text.plain.rhtml --- a/app/views/mailer/news_comment_added.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -<%= @news.title %> -<%= @news_url %> - -<%= l(:text_user_wrote, :value => @comment.author) %> - -<%= @comment.comments %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/register.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/register.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,2 @@ +

<%= l(:mail_body_register) %>
+<%= auto_link(@url) %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/register.text.html.rhtml --- a/app/views/mailer/register.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -

<%= l(:mail_body_register) %>
-<%= auto_link(@url) %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/register.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/register.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,2 @@ +<%= l(:mail_body_register) %> +<%= @url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/register.text.plain.rhtml --- a/app/views/mailer/register.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -<%= l(:mail_body_register) %> -<%= @url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/reminder.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/reminder.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,9 @@ +

<%= l(:mail_body_reminder, :count => @issues.size, :days => @days) %>

+ + + +

<%= link_to l(:label_issue_view_all), @issues_url %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/reminder.text.html.rhtml --- a/app/views/mailer/reminder.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -

<%= l(:mail_body_reminder, :count => @issues.size, :days => @days) %>

- - - -

<%= link_to l(:label_issue_view_all), @issues_url %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/reminder.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/reminder.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,7 @@ +<%= l(:mail_body_reminder, :count => @issues.size, :days => @days) %>: + +<% @issues.each do |issue| -%> +* <%= "#{issue.project} - #{issue.tracker} ##{issue.id}: #{issue.subject}" %> +<% end -%> + +<%= @issues_url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/reminder.text.plain.rhtml --- a/app/views/mailer/reminder.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -<%= l(:mail_body_reminder, :count => @issues.size, :days => @days) %>: - -<% @issues.each do |issue| -%> -* <%= "#{issue.project} - #{issue.tracker} ##{issue.id}: #{issue.subject}" %> -<% end -%> - -<%= @issues_url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/test.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/test.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,2 @@ +

This is a test email sent by Redmine.
+Redmine URL: <%= auto_link(@url) %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/test.text.html.rhtml --- a/app/views/mailer/test.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -

This is a test email sent by Redmine.
-Redmine URL: <%= auto_link(@url) %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/test.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/test.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,2 @@ +This is a test email sent by Redmine. +Redmine URL: <%= @url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/test.text.plain.rhtml --- a/app/views/mailer/test.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -This is a test email sent by Redmine. -Redmine URL: <%= @url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/wiki_content_added.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/wiki_content_added.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,3 @@ +

<%= l(:mail_body_wiki_content_added, :id => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url), + :author => h(@wiki_content.author)) %>
+<%=h @wiki_content.comments %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/wiki_content_added.text.html.rhtml --- a/app/views/mailer/wiki_content_added.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -

<%= l(:mail_body_wiki_content_added, :id => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url), - :author => h(@wiki_content.author)) %>
-<%=h @wiki_content.comments %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/wiki_content_added.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/wiki_content_added.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,5 @@ +<%= l(:mail_body_wiki_content_added, :id => h(@wiki_content.page.pretty_title), + :author => h(@wiki_content.author)) %> +<%= @wiki_content.comments %> + +<%= @wiki_content_url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/wiki_content_added.text.plain.rhtml --- a/app/views/mailer/wiki_content_added.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -<%= l(:mail_body_wiki_content_added, :id => h(@wiki_content.page.pretty_title), - :author => h(@wiki_content.author)) %> -<%= @wiki_content.comments %> - -<%= @wiki_content_url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/wiki_content_updated.text.html.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/wiki_content_updated.text.html.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%= l(:mail_body_wiki_content_updated, :id => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url), + :author => h(@wiki_content.author)) %>
+<%=h @wiki_content.comments %>

+ +

<%= l(:label_view_diff) %>:
+<%= link_to @wiki_diff_url, @wiki_diff_url %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/wiki_content_updated.text.html.rhtml --- a/app/views/mailer/wiki_content_updated.text.html.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%= l(:mail_body_wiki_content_updated, :id => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url), - :author => h(@wiki_content.author)) %>
-<%=h @wiki_content.comments %>

- -

<%= l(:label_view_diff) %>:
-<%= link_to @wiki_diff_url, @wiki_diff_url %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/wiki_content_updated.text.plain.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/mailer/wiki_content_updated.text.plain.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,8 @@ +<%= l(:mail_body_wiki_content_updated, :id => h(@wiki_content.page.pretty_title), + :author => h(@wiki_content.author)) %> +<%= @wiki_content.comments %> + +<%= @wiki_content.page.pretty_title %>: +<%= @wiki_content_url %> +<%= l(:label_view_diff) %>: +<%= @wiki_diff_url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/mailer/wiki_content_updated.text.plain.rhtml --- a/app/views/mailer/wiki_content_updated.text.plain.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -<%= l(:mail_body_wiki_content_updated, :id => h(@wiki_content.page.pretty_title), - :author => h(@wiki_content.author)) %> -<%= @wiki_content.comments %> - -<%= @wiki_content.page.pretty_title %>: -<%= @wiki_content_url %> -<%= l(:label_view_diff) %>: -<%= @wiki_diff_url %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/members/autocomplete_for_member.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/members/autocomplete_for_member.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,1 @@ +<%= principals_check_box_tags 'member[user_ids][]', @principals %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/members/autocomplete_for_member.rhtml --- a/app/views/members/autocomplete_for_member.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -<%= principals_check_box_tags 'member[user_ids][]', @principals %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/messages/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/messages/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,26 @@ +<%= error_messages_for 'message' %> +<% replying ||= false %> + +
+ +


+<%= f.text_field :subject, :size => 120 %> + +<% if !replying && User.current.allowed_to?(:edit_messages, @project) %> + + +<% end %> +

+ +<% if !replying && !@message.new_record? && User.current.allowed_to?(:edit_messages, @project) %> +


+ <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %>

+<% end %> + +

<%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %>

+<%= wikitoolbar_for 'message_content' %> + + +

<%= l(:label_attachment_plural) %>
+<%= render :partial => 'attachments/form' %>

+
diff -r df51e8ff578d -r c6c2cbd0afee app/views/messages/_form.rhtml --- a/app/views/messages/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -<%= error_messages_for 'message' %> -<% replying ||= false %> - -
- -


-<%= f.text_field :subject, :size => 120 %> - -<% if !replying && User.current.allowed_to?(:edit_messages, @project) %> - - -<% end %> -

- -<% if !replying && !@message.new_record? && User.current.allowed_to?(:edit_messages, @project) %> -


- <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %>

-<% end %> - -

<%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %>

-<%= wikitoolbar_for 'message_content' %> - - -

<%= l(:label_attachment_plural) %>
-<%= render :partial => 'attachments/form' %>

-
diff -r df51e8ff578d -r c6c2cbd0afee app/views/messages/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/messages/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,18 @@ +

<%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%=h @message.subject %>

+ +<% form_for :message, @message, :url => {:action => 'edit'}, :html => {:multipart => true, :id => 'message-form'} do |f| %> + <%= render :partial => 'form', :locals => {:f => f, :replying => !@message.parent.nil?} %> + <%= submit_tag l(:button_save) %> + <%= link_to_remote l(:label_preview), + { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, + :method => 'post', + :update => 'preview', + :with => "Form.serialize('message-form')", + :complete => "Element.scrollTo('preview')" + }, :accesskey => accesskey(:preview) %> +<% end %> +
+ +<% content_for :header_tags do %> + <%= stylesheet_link_tag 'scm' %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/messages/edit.rhtml --- a/app/views/messages/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -

<%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%=h @message.subject %>

- -<% form_for :message, @message, :url => {:action => 'edit'}, :html => {:multipart => true, :id => 'message-form'} do |f| %> - <%= render :partial => 'form', :locals => {:f => f, :replying => !@message.parent.nil?} %> - <%= submit_tag l(:button_save) %> - <%= link_to_remote l(:label_preview), - { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, - :method => 'post', - :update => 'preview', - :with => "Form.serialize('message-form')", - :complete => "Element.scrollTo('preview')" - }, :accesskey => accesskey(:preview) %> -<% end %> -
- -<% content_for :header_tags do %> - <%= stylesheet_link_tag 'scm' %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/messages/new.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/messages/new.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,15 @@ +

<%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %>

+ +<% form_for :message, @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %> + <%= render :partial => 'form', :locals => {:f => f} %> + <%= submit_tag l(:button_create) %> + <%= link_to_remote l(:label_preview), + { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, + :method => 'post', + :update => 'preview', + :with => "Form.serialize('message-form')", + :complete => "Element.scrollTo('preview')" + }, :accesskey => accesskey(:preview) %> +<% end %> + +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/messages/new.rhtml --- a/app/views/messages/new.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -

<%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %>

- -<% form_for :message, @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %> - <%= render :partial => 'form', :locals => {:f => f} %> - <%= submit_tag l(:button_create) %> - <%= link_to_remote l(:label_preview), - { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, - :method => 'post', - :update => 'preview', - :with => "Form.serialize('message-form')", - :complete => "Element.scrollTo('preview')" - }, :accesskey => accesskey(:preview) %> -<% end %> - -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/messages/show.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/messages/show.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,66 @@ +<%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}), + link_to(h(@board.name), {:controller => 'boards', :action => 'show', :project_id => @project, :id => @board}) %> + +
+ <%= watcher_tag(@topic, User.current) %> + <%= link_to_remote_if_authorized(l(:button_quote), { :url => {:action => 'quote', :id => @topic} }, :class => 'icon icon-comment') unless @topic.locked? %> + <%= link_to(l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'icon icon-edit') if @message.editable_by?(User.current) %> + <%= link_to(l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') if @message.destroyable_by?(User.current) %> +
+ +

<%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %>

+ +
+

<%= authoring @topic.created_on, @topic.author %>

+
+<%= textilizable(@topic.content, :attachments => @topic.attachments) %> +
+<%= link_to_attachments @topic, :author => false %> +
+
+ +<% unless @replies.empty? %> +

<%= l(:label_reply_plural) %> (<%= @reply_count %>)

+<% @replies.each do |message| %> +
"> +
+ <%= link_to_remote_if_authorized(image_tag('comment.png'), { :url => {:action => 'quote', :id => message} }, :title => l(:button_quote)) unless @topic.locked? %> + <%= link_to(image_tag('edit.png'), {:action => 'edit', :id => message}, :title => l(:button_edit)) if message.editable_by?(User.current) %> + <%= link_to(image_tag('delete.png'), {:action => 'destroy', :id => message}, :method => :post, :confirm => l(:text_are_you_sure), :title => l(:button_delete)) if message.destroyable_by?(User.current) %> +
+

+ <%= avatar(message.author, :size => "24") %> + <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %> + - + <%= authoring message.created_on, message.author %> +

+
<%= textilizable message, :content, :attachments => message.attachments %>
+ <%= link_to_attachments message, :author => false %> +
+<% end %> +

<%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %>

+<% end %> + +<% if !@topic.locked? && authorize_for('messages', 'reply') %> +

<%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %>

+ +<% end %> + +<% content_for :header_tags do %> + <%= stylesheet_link_tag 'scm' %> +<% end %> + +<% html_title h(@topic.subject) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/messages/show.rhtml --- a/app/views/messages/show.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,66 +0,0 @@ -<%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}), - link_to(h(@board.name), {:controller => 'boards', :action => 'show', :project_id => @project, :id => @board}) %> - -
- <%= watcher_tag(@topic, User.current) %> - <%= link_to_remote_if_authorized(l(:button_quote), { :url => {:action => 'quote', :id => @topic} }, :class => 'icon icon-comment') unless @topic.locked? %> - <%= link_to(l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'icon icon-edit') if @message.editable_by?(User.current) %> - <%= link_to(l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') if @message.destroyable_by?(User.current) %> -
- -

<%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %>

- -
-

<%= authoring @topic.created_on, @topic.author %>

-
-<%= textilizable(@topic.content, :attachments => @topic.attachments) %> -
-<%= link_to_attachments @topic, :author => false %> -
-
- -<% unless @replies.empty? %> -

<%= l(:label_reply_plural) %> (<%= @reply_count %>)

-<% @replies.each do |message| %> -
"> -
- <%= link_to_remote_if_authorized(image_tag('comment.png'), { :url => {:action => 'quote', :id => message} }, :title => l(:button_quote)) unless @topic.locked? %> - <%= link_to(image_tag('edit.png'), {:action => 'edit', :id => message}, :title => l(:button_edit)) if message.editable_by?(User.current) %> - <%= link_to(image_tag('delete.png'), {:action => 'destroy', :id => message}, :method => :post, :confirm => l(:text_are_you_sure), :title => l(:button_delete)) if message.destroyable_by?(User.current) %> -
-

- <%= avatar(message.author, :size => "24") %> - <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %> - - - <%= authoring message.created_on, message.author %> -

-
<%= textilizable message, :content, :attachments => message.attachments %>
- <%= link_to_attachments message, :author => false %> -
-<% end %> -

<%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %>

-<% end %> - -<% if !@topic.locked? && authorize_for('messages', 'reply') %> -

<%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %>

- -<% end %> - -<% content_for :header_tags do %> - <%= stylesheet_link_tag 'scm' %> -<% end %> - -<% html_title h(@topic.subject) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/_block.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/_block.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,14 @@ +
+ +
+ <%= link_to_remote "", { + :url => { :action => "remove_block", :block => block_name }, + :complete => "removeBlock('block_#{block_name.dasherize}')" }, + :class => "close-icon" + %> +
+ +
+ <%= render :partial => "my/blocks/#{block_name}", :locals => { :user => user } %> +
+
\ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/_block.rhtml --- a/app/views/my/_block.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -
- -
- <%= link_to_remote "", { - :url => { :action => "remove_block", :block => block_name }, - :complete => "removeBlock('block_#{block_name.dasherize}')" }, - :class => "close-icon" - %> -
- -
- <%= render :partial => "my/blocks/#{block_name}", :locals => { :user => user } %> -
-
\ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/_sidebar.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/_sidebar.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,33 @@ +

<%=l(:label_my_account)%>

+ +

<%=l(:field_login)%>: <%= link_to_user(@user, :format => :username) %>
+<%=l(:field_created_on)%>: <%= format_time(@user.created_on) %>

+ + +

<%= l(:label_feeds_access_key) %>

+ +

+<% if @user.rss_token %> +<%= l(:label_feeds_access_key_created_on, distance_of_time_in_words(Time.now, @user.rss_token.created_on)) %> +<% else %> +<%= l(:label_missing_feeds_access_key) %> +<% end %> +(<%= link_to l(:button_reset), {:action => 'reset_rss_key'}, :method => :post %>) +

+ +<% if Setting.rest_api_enabled? %> +

<%= l(:label_api_access_key) %>

+
+ <%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%> +
<%= h(@user.api_key) %>
+
+<%= javascript_tag("$('api-access-key').hide();") %> +

+<% if @user.api_token %> +<%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %> +<% else %> +<%= l(:label_missing_api_access_key) %> +<% end %> +(<%= link_to l(:button_reset), {:action => 'reset_api_key'}, :method => :post %>) +

+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/_sidebar.rhtml --- a/app/views/my/_sidebar.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -

<%=l(:label_my_account)%>

- -

<%=l(:field_login)%>: <%= link_to_user(@user, :format => :username) %>
-<%=l(:field_created_on)%>: <%= format_time(@user.created_on) %>

- - -

<%= l(:label_feeds_access_key) %>

- -

-<% if @user.rss_token %> -<%= l(:label_feeds_access_key_created_on, distance_of_time_in_words(Time.now, @user.rss_token.created_on)) %> -<% else %> -<%= l(:label_missing_feeds_access_key) %> -<% end %> -(<%= link_to l(:button_reset), {:action => 'reset_rss_key'}, :method => :post %>) -

- -<% if Setting.rest_api_enabled? %> -

<%= l(:label_api_access_key) %>

-
- <%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%> -
<%= h(@user.api_key) %>
-
-<%= javascript_tag("$('api-access-key').hide();") %> -

-<% if @user.api_token %> -<%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %> -<% else %> -<%= l(:label_missing_api_access_key) %> -<% end %> -(<%= link_to l(:button_reset), {:action => 'reset_api_key'}, :method => :post %>) -

-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/account.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/account.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,50 @@ +
+<%= link_to(l(:button_change_password), :action => 'password') if @user.change_password_allowed? %> +<%= call_hook(:view_my_account_contextual, :user => @user)%> +
+

<%=l(:label_my_account)%>

+<%= error_messages_for 'user' %> + +<% form_for :user, @user, :url => { :action => "account" }, + :builder => TabularFormBuilder, + :lang => current_language, + :html => { :id => 'my_account_form' } do |f| %> +
+

<%=l(:label_information_plural)%>

+
+

<%= f.text_field :firstname, :required => true %>

+

<%= f.text_field :lastname, :required => true %>

+

<%= f.text_field :mail, :required => true %>

+

<%= f.select :language, lang_options_for_select %>

+<% if Setting.openid? %> +

<%= f.text_field :identity_url %>

+<% end %> + +<% @user.custom_field_values.select(&:editable?).each do |value| %> +

<%= custom_field_tag_with_label :user, value %>

+<% end %> +<%= call_hook(:view_my_account, :user => @user, :form => f) %> +
+ +<%= submit_tag l(:button_save) %> +
+ +
+

<%=l(:field_mail_notification)%>

+
+<%= render :partial => 'users/mail_notifications' %> +
+ +

<%=l(:label_preferences)%>

+
+<%= render :partial => 'users/preferences' %> +
+ +
+<% end %> + +<% content_for :sidebar do %> +<%= render :partial => 'sidebar' %> +<% end %> + +<% html_title(l(:label_my_account)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/account.rhtml --- a/app/views/my/account.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -
-<%= link_to(l(:button_change_password), :action => 'password') if @user.change_password_allowed? %> -<%= call_hook(:view_my_account_contextual, :user => @user)%> -
-

<%=l(:label_my_account)%>

-<%= error_messages_for 'user' %> - -<% form_for :user, @user, :url => { :action => "account" }, - :builder => TabularFormBuilder, - :lang => current_language, - :html => { :id => 'my_account_form' } do |f| %> -
-

<%=l(:label_information_plural)%>

-
-

<%= f.text_field :firstname, :required => true %>

-

<%= f.text_field :lastname, :required => true %>

-

<%= f.text_field :mail, :required => true %>

-

<%= f.select :language, lang_options_for_select %>

-<% if Setting.openid? %> -

<%= f.text_field :identity_url %>

-<% end %> - -<% @user.custom_field_values.select(&:editable?).each do |value| %> -

<%= custom_field_tag_with_label :user, value %>

-<% end %> -<%= call_hook(:view_my_account, :user => @user, :form => f) %> -
- -<%= submit_tag l(:button_save) %> -
- -
-

<%=l(:field_mail_notification)%>

-
-<%= render :partial => 'users/mail_notifications' %> -
- -

<%=l(:label_preferences)%>

-
-<%= render :partial => 'users/preferences' %> -
- -
-<% end %> - -<% content_for :sidebar do %> -<%= render :partial => 'sidebar' %> -<% end %> - -<% html_title(l(:label_my_account)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_calendar.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/blocks/_calendar.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,8 @@ +

<%= l(:label_calendar) %>

+ +<% calendar = Redmine::Helpers::Calendar.new(Date.today, current_language, :week) + calendar.events = Issue.visible.find :all, + :conditions => ["#{Issue.table_name}.project_id in (#{@user.projects.collect{|m| m.id}.join(',')}) AND ((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?))", calendar.startdt, calendar.enddt, calendar.startdt, calendar.enddt], + :include => [:project, :tracker, :priority, :assigned_to] unless @user.projects.empty? %> + +<%= render :partial => 'common/calendar', :locals => {:calendar => calendar } %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_calendar.rhtml --- a/app/views/my/blocks/_calendar.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -

<%= l(:label_calendar) %>

- -<% calendar = Redmine::Helpers::Calendar.new(Date.today, current_language, :week) - calendar.events = Issue.visible.find :all, - :conditions => ["#{Issue.table_name}.project_id in (#{@user.projects.collect{|m| m.id}.join(',')}) AND ((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?))", calendar.startdt, calendar.enddt, calendar.startdt, calendar.enddt], - :include => [:project, :tracker, :priority, :assigned_to] unless @user.projects.empty? %> - -<%= render :partial => 'common/calendar', :locals => {:calendar => calendar } %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_documents.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/blocks/_documents.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,9 @@ +

<%=l(:label_document_plural)%>

+ +<% project_ids = @user.projects.select {|p| @user.allowed_to?(:view_documents, p)}.collect(&:id) %> +<%= render(:partial => 'documents/document', + :collection => Document.find(:all, + :limit => 10, + :order => "#{Document.table_name}.created_on DESC", + :conditions => "#{Document.table_name}.project_id in (#{project_ids.join(',')})", + :include => [:project])) unless project_ids.empty? %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_documents.rhtml --- a/app/views/my/blocks/_documents.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -

<%=l(:label_document_plural)%>

- -<% project_ids = @user.projects.select {|p| @user.allowed_to?(:view_documents, p)}.collect(&:id) %> -<%= render(:partial => 'documents/document', - :collection => Document.find(:all, - :limit => 10, - :order => "#{Document.table_name}.created_on DESC", - :conditions => "#{Document.table_name}.project_id in (#{project_ids.join(',')})", - :include => [:project])) unless project_ids.empty? %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_issuesassignedtome.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/blocks/_issuesassignedtome.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,22 @@ +

<%=l(:label_assigned_to_me_issues)%> (<%= Issue.visible.open.count(:conditions => {:assigned_to_id => User.current.id})%>)

+ +<% assigned_issues = Issue.visible.open.find(:all, + :conditions => {:assigned_to_id => User.current.id}, + :limit => 10, + :include => [ :status, :project, :tracker, :priority ], + :order => "#{IssuePriority.table_name}.position DESC, #{Issue.table_name}.updated_on DESC") %> +<%= render :partial => 'issues/list_simple', :locals => { :issues => assigned_issues } %> +<% if assigned_issues.length > 0 %> +

<%= link_to l(:label_issue_view_all), :controller => 'issues', + :action => 'index', + :set_filter => 1, + :assigned_to_id => 'me', + :sort => 'priority:desc,updated_on:desc' %>

+<% end %> + +<% content_for :header_tags do %> +<%= auto_discovery_link_tag(:atom, + {:controller => 'issues', :action => 'index', :set_filter => 1, + :assigned_to_id => 'me', :format => 'atom', :key => User.current.rss_key}, + {:title => l(:label_assigned_to_me_issues)}) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_issuesassignedtome.rhtml --- a/app/views/my/blocks/_issuesassignedtome.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -

<%=l(:label_assigned_to_me_issues)%> (<%= Issue.visible.open.count(:conditions => {:assigned_to_id => User.current.id})%>)

- -<% assigned_issues = Issue.visible.open.find(:all, - :conditions => {:assigned_to_id => User.current.id}, - :limit => 10, - :include => [ :status, :project, :tracker, :priority ], - :order => "#{IssuePriority.table_name}.position DESC, #{Issue.table_name}.updated_on DESC") %> -<%= render :partial => 'issues/list_simple', :locals => { :issues => assigned_issues } %> -<% if assigned_issues.length > 0 %> -

<%= link_to l(:label_issue_view_all), :controller => 'issues', - :action => 'index', - :set_filter => 1, - :assigned_to_id => 'me', - :sort => 'priority:desc,updated_on:desc' %>

-<% end %> - -<% content_for :header_tags do %> -<%= auto_discovery_link_tag(:atom, - {:controller => 'issues', :action => 'index', :set_filter => 1, - :assigned_to_id => 'me', :format => 'atom', :key => User.current.rss_key}, - {:title => l(:label_assigned_to_me_issues)}) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_issuesreportedbyme.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/blocks/_issuesreportedbyme.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,23 @@ +

<%=l(:label_reported_issues)%> (<%= Issue.visible.count(:conditions => { :author_id => User.current.id }) %>)

+ +<% reported_issues = Issue.visible.find(:all, + :conditions => { :author_id => User.current.id }, + :limit => 10, + :include => [ :status, :project, :tracker ], + :order => "#{Issue.table_name}.updated_on DESC") %> +<%= render :partial => 'issues/list_simple', :locals => { :issues => reported_issues } %> +<% if reported_issues.length > 0 %> +

<%= link_to l(:label_issue_view_all), :controller => 'issues', + :action => 'index', + :set_filter => 1, + :status_id => '*', + :author_id => 'me', + :sort => 'updated_on:desc' %>

+<% end %> + +<% content_for :header_tags do %> +<%= auto_discovery_link_tag(:atom, + {:controller => 'issues', :action => 'index', :set_filter => 1, + :author_id => 'me', :format => 'atom', :key => User.current.rss_key}, + {:title => l(:label_reported_issues)}) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_issuesreportedbyme.rhtml --- a/app/views/my/blocks/_issuesreportedbyme.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -

<%=l(:label_reported_issues)%> (<%= Issue.visible.count(:conditions => { :author_id => User.current.id }) %>)

- -<% reported_issues = Issue.visible.find(:all, - :conditions => { :author_id => User.current.id }, - :limit => 10, - :include => [ :status, :project, :tracker ], - :order => "#{Issue.table_name}.updated_on DESC") %> -<%= render :partial => 'issues/list_simple', :locals => { :issues => reported_issues } %> -<% if reported_issues.length > 0 %> -

<%= link_to l(:label_issue_view_all), :controller => 'issues', - :action => 'index', - :set_filter => 1, - :status_id => '*', - :author_id => 'me', - :sort => 'updated_on:desc' %>

-<% end %> - -<% content_for :header_tags do %> -<%= auto_discovery_link_tag(:atom, - {:controller => 'issues', :action => 'index', :set_filter => 1, - :author_id => 'me', :format => 'atom', :key => User.current.rss_key}, - {:title => l(:label_reported_issues)}) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_issueswatched.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/blocks/_issueswatched.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,11 @@ +

<%=l(:label_watched_issues)%> (<%= Issue.visible.watched_by(user.id).count %>)

+<% watched_issues = Issue.visible.on_active_project.watched_by(user.id).recently_updated.with_limit(10) %> + +<%= render :partial => 'issues/list_simple', :locals => { :issues => watched_issues } %> +<% if watched_issues.length > 0 %> +

<%= link_to l(:label_issue_view_all), :controller => 'issues', + :action => 'index', + :set_filter => 1, + :watcher_id => 'me', + :sort => 'updated_on:desc' %>

+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_issueswatched.rhtml --- a/app/views/my/blocks/_issueswatched.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -

<%=l(:label_watched_issues)%> (<%= Issue.visible.watched_by(user.id).count %>)

-<% watched_issues = Issue.visible.on_active_project.watched_by(user.id).recently_updated.with_limit(10) %> - -<%= render :partial => 'issues/list_simple', :locals => { :issues => watched_issues } %> -<% if watched_issues.length > 0 %> -

<%= link_to l(:label_issue_view_all), :controller => 'issues', - :action => 'index', - :set_filter => 1, - :watcher_id => 'me', - :sort => 'updated_on:desc' %>

-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_news.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/blocks/_news.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,8 @@ +

<%=l(:label_news_latest)%>

+ +<%= render(:partial => 'news/news', + :collection => News.find(:all, + :limit => 10, + :order => "#{News.table_name}.created_on DESC", + :conditions => "#{News.table_name}.project_id in (#{@user.projects.collect{|m| m.id}.join(',')})", + :include => [:project, :author])) unless @user.projects.empty? %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_news.rhtml --- a/app/views/my/blocks/_news.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -

<%=l(:label_news_latest)%>

- -<%= render(:partial => 'news/news', - :collection => News.find(:all, - :limit => 10, - :order => "#{News.table_name}.created_on DESC", - :conditions => "#{News.table_name}.project_id in (#{@user.projects.collect{|m| m.id}.join(',')})", - :include => [:project, :author])) unless @user.projects.empty? %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_timelog.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/blocks/_timelog.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,52 @@ +

<%=l(:label_spent_time)%> (<%= l(:label_last_n_days, 7) %>)

+<% +entries = TimeEntry.find(:all, + :conditions => ["#{TimeEntry.table_name}.user_id = ? AND #{TimeEntry.table_name}.spent_on BETWEEN ? AND ?", @user.id, Date.today - 6, Date.today], + :include => [:activity, :project, {:issue => [:tracker, :status]}], + :order => "#{TimeEntry.table_name}.spent_on DESC, #{Project.table_name}.name ASC, #{Tracker.table_name}.position ASC, #{Issue.table_name}.id ASC") +entries_by_day = entries.group_by(&:spent_on) +%> + +
+

<%= l(:label_total) %>: <%= html_hours("%.2f" % entries.sum(&:hours).to_f) %>

+
+ +<% if entries.any? %> + + + + + + + + + +<% entries_by_day.keys.sort.reverse.each do |day| %> + + + + + + + <% entries_by_day[day].each do |entry| -%> + + + + + + + + <% end -%> +<% end -%> + +
<%= l(:label_activity) %><%= l(:label_project) %><%= l(:field_comments) %><%= l(:field_hours) %>
<%= day == Date.today ? l(:label_today).titleize : format_date(day) %><%= html_hours("%.2f" % entries_by_day[day].sum(&:hours).to_f) %>
<%=h entry.activity %><%=h entry.project %> <%= ' - ' + link_to_issue(entry.issue, :truncate => 50) if entry.issue %><%=h entry.comments %><%= html_hours("%.2f" % entry.hours) %> + <% if entry.editable_by?(@user) -%> + <%= link_to image_tag('edit.png'), {:controller => 'timelog', :action => 'edit', :id => entry}, + :title => l(:button_edit) %> + <%= link_to image_tag('delete.png'), {:controller => 'timelog', :action => 'destroy', :id => entry}, + :confirm => l(:text_are_you_sure), + :method => :delete, + :title => l(:button_delete) %> + <% end -%> +
+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/blocks/_timelog.rhtml --- a/app/views/my/blocks/_timelog.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -

<%=l(:label_spent_time)%> (<%= l(:label_last_n_days, 7) %>)

-<% -entries = TimeEntry.find(:all, - :conditions => ["#{TimeEntry.table_name}.user_id = ? AND #{TimeEntry.table_name}.spent_on BETWEEN ? AND ?", @user.id, Date.today - 6, Date.today], - :include => [:activity, :project, {:issue => [:tracker, :status]}], - :order => "#{TimeEntry.table_name}.spent_on DESC, #{Project.table_name}.name ASC, #{Tracker.table_name}.position ASC, #{Issue.table_name}.id ASC") -entries_by_day = entries.group_by(&:spent_on) -%> - -
-

<%= l(:label_total) %>: <%= html_hours("%.2f" % entries.sum(&:hours).to_f) %>

-
- -<% if entries.any? %> - - - - - - - - - -<% entries_by_day.keys.sort.reverse.each do |day| %> - - - - - - - <% entries_by_day[day].each do |entry| -%> - - - - - - - - <% end -%> -<% end -%> - -
<%= l(:label_activity) %><%= l(:label_project) %><%= l(:field_comments) %><%= l(:field_hours) %>
<%= day == Date.today ? l(:label_today).titleize : format_date(day) %><%= html_hours("%.2f" % entries_by_day[day].sum(&:hours).to_f) %>
<%=h entry.activity %><%=h entry.project %> <%= ' - ' + link_to_issue(entry.issue, :truncate => 50) if entry.issue %><%=h entry.comments %><%= html_hours("%.2f" % entry.hours) %> - <% if entry.editable_by?(@user) -%> - <%= link_to image_tag('edit.png'), {:controller => 'timelog', :action => 'edit', :id => entry}, - :title => l(:button_edit) %> - <%= link_to image_tag('delete.png'), {:controller => 'timelog', :action => 'destroy', :id => entry}, - :confirm => l(:text_are_you_sure), - :method => :delete, - :title => l(:button_delete) %> - <% end -%> -
-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/page.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/page.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,36 @@ +
+ <%= link_to l(:label_personalize_page), :action => 'page_layout' %> +
+ +

<%=l(:label_my_page)%>

+ +
+ <% @blocks['top'].each do |b| + next unless MyController::BLOCKS.keys.include? b %> +
+ <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %> +
+ <% end if @blocks['top'] %> +
+ +
+ <% @blocks['left'].each do |b| + next unless MyController::BLOCKS.keys.include? b %> +
+ <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %> +
+ <% end if @blocks['left'] %> +
+ +
+ <% @blocks['right'].each do |b| + next unless MyController::BLOCKS.keys.include? b %> +
+ <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %> +
+ <% end if @blocks['right'] %> +
+ +<%= context_menu :controller => 'issues', :action => 'context_menu' %> + +<% html_title(l(:label_my_page)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/page.rhtml --- a/app/views/my/page.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -
- <%= link_to l(:label_personalize_page), :action => 'page_layout' %> -
- -

<%=l(:label_my_page)%>

- -
- <% @blocks['top'].each do |b| - next unless MyController::BLOCKS.keys.include? b %> -
- <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %> -
- <% end if @blocks['top'] %> -
- -
- <% @blocks['left'].each do |b| - next unless MyController::BLOCKS.keys.include? b %> -
- <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %> -
- <% end if @blocks['left'] %> -
- -
- <% @blocks['right'].each do |b| - next unless MyController::BLOCKS.keys.include? b %> -
- <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %> -
- <% end if @blocks['right'] %> -
- -<%= context_menu :controller => 'issues', :action => 'context_menu' %> - -<% html_title(l(:label_my_page)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/page_layout.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/page_layout.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,108 @@ + + +
+<% form_tag({:action => "add_block"}, :id => "block-form") do %> +<%= label_tag('block-select', l(:label_my_page_block)) %>: +<%= select_tag 'block', "" + options_for_select(@block_options), :id => "block-select" %> +<%= link_to_remote l(:button_add), + {:url => { :action => "add_block" }, + :with => "Form.serialize('block-form')", + :update => "list-top", + :position => :top, + :complete => "afterAddBlock();" + }, :class => 'icon icon-add' + %> +<% end %> +<%= link_to l(:button_back), {:action => 'page'}, :class => 'icon icon-cancel' %> +
+ +

<%=l(:label_my_page)%>

+ +
+ <% @blocks['top'].each do |b| + next unless MyController::BLOCKS.keys.include? b %> + <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %> + <% end if @blocks['top'] %> +
+ +
+ <% @blocks['left'].each do |b| + next unless MyController::BLOCKS.keys.include? b %> + <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %> + <% end if @blocks['left'] %> +
+ +
+ <% @blocks['right'].each do |b| + next unless MyController::BLOCKS.keys.include? b %> + <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %> + <% end if @blocks['right'] %> +
+ +<%= sortable_element 'list-top', + :tag => 'div', + :only => 'mypage-box', + :handle => "handle", + :dropOnEmpty => true, + :containment => ['list-top', 'list-left', 'list-right'], + :constraint => false, + :url => { :action => "order_blocks", :group => "top" } + %> + + +<%= sortable_element 'list-left', + :tag => 'div', + :only => 'mypage-box', + :handle => "handle", + :dropOnEmpty => true, + :containment => ['list-top', 'list-left', 'list-right'], + :constraint => false, + :url => { :action => "order_blocks", :group => "left" } + %> + +<%= sortable_element 'list-right', + :tag => 'div', + :only => 'mypage-box', + :handle => "handle", + :dropOnEmpty => true, + :containment => ['list-top', 'list-left', 'list-right'], + :constraint => false, + :url => { :action => "order_blocks", :group => "right" } + %> + +<%= javascript_tag "updateSelect()" %> +<% html_title(l(:label_my_page)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/page_layout.rhtml --- a/app/views/my/page_layout.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,108 +0,0 @@ - - -
-<% form_tag({:action => "add_block"}, :id => "block-form") do %> -<%= label_tag('block-select', l(:label_my_page_block)) %>: -<%= select_tag 'block', "" + options_for_select(@block_options), :id => "block-select" %> -<%= link_to_remote l(:button_add), - {:url => { :action => "add_block" }, - :with => "Form.serialize('block-form')", - :update => "list-top", - :position => :top, - :complete => "afterAddBlock();" - }, :class => 'icon icon-add' - %> -<% end %> -<%= link_to l(:button_back), {:action => 'page'}, :class => 'icon icon-cancel' %> -
- -

<%=l(:label_my_page)%>

- -
- <% @blocks['top'].each do |b| - next unless MyController::BLOCKS.keys.include? b %> - <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %> - <% end if @blocks['top'] %> -
- -
- <% @blocks['left'].each do |b| - next unless MyController::BLOCKS.keys.include? b %> - <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %> - <% end if @blocks['left'] %> -
- -
- <% @blocks['right'].each do |b| - next unless MyController::BLOCKS.keys.include? b %> - <%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %> - <% end if @blocks['right'] %> -
- -<%= sortable_element 'list-top', - :tag => 'div', - :only => 'mypage-box', - :handle => "handle", - :dropOnEmpty => true, - :containment => ['list-top', 'list-left', 'list-right'], - :constraint => false, - :url => { :action => "order_blocks", :group => "top" } - %> - - -<%= sortable_element 'list-left', - :tag => 'div', - :only => 'mypage-box', - :handle => "handle", - :dropOnEmpty => true, - :containment => ['list-top', 'list-left', 'list-right'], - :constraint => false, - :url => { :action => "order_blocks", :group => "left" } - %> - -<%= sortable_element 'list-right', - :tag => 'div', - :only => 'mypage-box', - :handle => "handle", - :dropOnEmpty => true, - :containment => ['list-top', 'list-left', 'list-right'], - :constraint => false, - :url => { :action => "order_blocks", :group => "right" } - %> - -<%= javascript_tag "updateSelect()" %> -<% html_title(l(:label_my_page)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/password.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/my/password.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,22 @@ +

<%=l(:button_change_password)%>

+ +<%= error_messages_for 'user' %> + +<% form_tag({}, :class => "tabular") do %> +
+

+<%= password_field_tag 'password', nil, :size => 25 %>

+ +

+<%= password_field_tag 'new_password', nil, :size => 25 %>
+<%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

+ +

+<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %>

+
+<%= submit_tag l(:button_apply) %> +<% end %> + +<% content_for :sidebar do %> +<%= render :partial => 'sidebar' %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/my/password.rhtml --- a/app/views/my/password.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -

<%=l(:button_change_password)%>

- -<%= error_messages_for 'user' %> - -<% form_tag({}, :class => "tabular") do %> -
-

-<%= password_field_tag 'password', nil, :size => 25 %>

- -

-<%= password_field_tag 'new_password', nil, :size => 25 %>
-<%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

- -

-<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %>

-
-<%= submit_tag l(:button_apply) %> -<% end %> - -<% content_for :sidebar do %> -<%= render :partial => 'sidebar' %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/news/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/news/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,8 @@ +<%= error_messages_for 'news' %> +
+

<%= f.text_field :title, :required => true, :size => 60 %>

+

<%= f.text_area :summary, :cols => 60, :rows => 2 %>

+

<%= f.text_area :description, :required => true, :cols => 60, :rows => 15, :class => 'wiki-edit' %>

+
+ +<%= wikitoolbar_for 'news_description' %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/news/_form.rhtml --- a/app/views/news/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -<%= error_messages_for 'news' %> -
-

<%= f.text_field :title, :required => true, :size => 60 %>

-

<%= f.text_area :summary, :cols => 60, :rows => 2 %>

-

<%= f.text_area :description, :required => true, :cols => 60, :rows => 15, :class => 'wiki-edit' %>

-
- -<%= wikitoolbar_for 'news_description' %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/news/_news.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/news/_news.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%= link_to_project(news.project) + ': ' unless @project %> +<%= link_to h(news.title), news_path(news) %> +<%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %> +
+<% unless news.summary.blank? %><%=h news.summary %>
<% end %> +<%= authoring news.created_on, news.author %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/news/_news.rhtml --- a/app/views/news/_news.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%= link_to_project(news.project) + ': ' unless @project %> -<%= link_to h(news.title), news_path(news) %> -<%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %> -
-<% unless news.summary.blank? %><%=h news.summary %>
<% end %> -<%= authoring news.created_on, news.author %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/news/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/news/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,18 @@ +

<%=l(:label_news)%>

+ +<% labelled_tabular_form_for :news, @news, :url => news_path(@news), + :html => { :id => 'news-form', :method => :put } do |f| %> +<%= render :partial => 'form', :locals => { :f => f } %> +<%= submit_tag l(:button_save) %> +<%= link_to_remote l(:label_preview), + { :url => preview_news_path(:project_id => @project), + :method => 'get', + :update => 'preview', + :with => "Form.serialize('news-form')" + }, :accesskey => accesskey(:preview) %> +<% end %> +
+ +<% content_for :header_tags do %> + <%= stylesheet_link_tag 'scm' %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/news/edit.rhtml --- a/app/views/news/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -

<%=l(:label_news)%>

- -<% labelled_tabular_form_for :news, @news, :url => news_path(@news), - :html => { :id => 'news-form', :method => :put } do |f| %> -<%= render :partial => 'form', :locals => { :f => f } %> -<%= submit_tag l(:button_save) %> -<%= link_to_remote l(:label_preview), - { :url => preview_news_path(:project_id => @project), - :method => 'get', - :update => 'preview', - :with => "Form.serialize('news-form')" - }, :accesskey => accesskey(:preview) %> -<% end %> -
- -<% content_for :header_tags do %> - <%= stylesheet_link_tag 'scm' %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/news/index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/news/index.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,51 @@ +
+<%= link_to(l(:label_news_new), + new_project_news_path(@project), + :class => 'icon icon-add', + :onclick => 'Element.show("add-news"); Form.Element.focus("news_title"); return false;') if @project && User.current.allowed_to?(:manage_news, @project) %> +
+ + + +

<%=l(:label_news_plural)%>

+ +<% if @newss.empty? %> +

<%= l(:label_no_data) %>

+<% else %> +<% @newss.each do |news| %> +

<%= link_to_project(news.project) + ': ' unless news.project == @project %> + <%= link_to h(news.title), news_path(news) %> + <%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %>

+

<%= authoring news.created_on, news.author %>

+
+ <%= textilizable(news.description) %> +
+<% end %> +<% end %> +

<%= pagination_links_full @news_pages %>

+ +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:project_id => @project, :key => User.current.rss_key} %> +<% end %> + +<% content_for :header_tags do %> + <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %> + <%= stylesheet_link_tag 'scm' %> +<% end %> + +<% html_title(l(:label_news_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/news/index.rhtml --- a/app/views/news/index.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -
-<%= link_to(l(:label_news_new), - new_project_news_path(@project), - :class => 'icon icon-add', - :onclick => 'Element.show("add-news"); Form.Element.focus("news_title"); return false;') if @project && User.current.allowed_to?(:manage_news, @project) %> -
- - - -

<%=l(:label_news_plural)%>

- -<% if @newss.empty? %> -

<%= l(:label_no_data) %>

-<% else %> -<% @newss.each do |news| %> -

<%= link_to_project(news.project) + ': ' unless news.project == @project %> - <%= link_to h(news.title), news_path(news) %> - <%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %>

-

<%= authoring news.created_on, news.author %>

-
- <%= textilizable(news.description) %> -
-<% end %> -<% end %> -

<%= pagination_links_full @news_pages %>

- -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:project_id => @project, :key => User.current.rss_key} %> -<% end %> - -<% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %> - <%= stylesheet_link_tag 'scm' %> -<% end %> - -<% html_title(l(:label_news_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/news/new.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/news/new.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,14 @@ +

<%=l(:label_news_new)%>

+ +<% labelled_tabular_form_for :news, @news, :url => project_news_index_path(@project), + :html => { :id => 'news-form' } do |f| %> +<%= render :partial => 'news/form', :locals => { :f => f } %> +<%= submit_tag l(:button_create) %> +<%= link_to_remote l(:label_preview), + { :url => preview_news_path(:project_id => @project), + :method => 'get', + :update => 'preview', + :with => "Form.serialize('news-form')" + }, :accesskey => accesskey(:preview) %> +<% end %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/news/new.rhtml --- a/app/views/news/new.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -

<%=l(:label_news_new)%>

- -<% labelled_tabular_form_for :news, @news, :url => project_news_index_path(@project), - :html => { :id => 'news-form' } do |f| %> -<%= render :partial => 'news/form', :locals => { :f => f } %> -<%= submit_tag l(:button_create) %> -<%= link_to_remote l(:label_preview), - { :url => preview_news_path(:project_id => @project), - :method => 'get', - :update => 'preview', - :with => "Form.serialize('news-form')" - }, :accesskey => accesskey(:preview) %> -<% end %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/news/show.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/news/show.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,70 @@ +
+<%= watcher_tag(@news, User.current) %> +<%= link_to(l(:button_edit), + edit_news_path(@news), + :class => 'icon icon-edit', + :accesskey => accesskey(:edit), + :onclick => 'Element.show("edit-news"); return false;') if User.current.allowed_to?(:manage_news, @project) %> +<%= link_to(l(:button_delete), + news_path(@news), + :confirm => l(:text_are_you_sure), + :method => :delete, + :class => 'icon icon-del') if User.current.allowed_to?(:manage_news, @project) %> +
+ +

<%= avatar(@news.author, :size => "24") %><%=h @news.title %>

+ +<% if authorize_for('news', 'edit') %> + +<% end %> + +

<% unless @news.summary.blank? %><%=h @news.summary %>
<% end %> +<%= authoring @news.created_on, @news.author %>

+
+<%= textilizable(@news.description) %> +
+
+ +
+

<%= l(:label_comment_plural) %>

+<% @comments.each do |comment| %> + <% next if comment.new_record? %> +
+ <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment}, + :confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %> +
+

<%= avatar(comment.author, :size => "24") %><%= authoring comment.created_on, comment.author %>

+ <%= textilizable(comment.comments) %> +<% end if @comments.any? %> +
+ +<% if authorize_for 'comments', 'create' %> +

<%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %>

+<% form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %> +
+ <%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit' %> + <%= wikitoolbar_for 'comment_comments' %> +
+

<%= submit_tag l(:button_add) %>

+<% end %> +<% end %> + +<% html_title @news.title -%> + +<% content_for :header_tags do %> + <%= stylesheet_link_tag 'scm' %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/news/show.rhtml --- a/app/views/news/show.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +0,0 @@ -
-<%= watcher_tag(@news, User.current) %> -<%= link_to(l(:button_edit), - edit_news_path(@news), - :class => 'icon icon-edit', - :accesskey => accesskey(:edit), - :onclick => 'Element.show("edit-news"); return false;') if User.current.allowed_to?(:manage_news, @project) %> -<%= link_to(l(:button_delete), - news_path(@news), - :confirm => l(:text_are_you_sure), - :method => :delete, - :class => 'icon icon-del') if User.current.allowed_to?(:manage_news, @project) %> -
- -

<%= avatar(@news.author, :size => "24") %><%=h @news.title %>

- -<% if authorize_for('news', 'edit') %> - -<% end %> - -

<% unless @news.summary.blank? %><%=h @news.summary %>
<% end %> -<%= authoring @news.created_on, @news.author %>

-
-<%= textilizable(@news.description) %> -
-
- -
-

<%= l(:label_comment_plural) %>

-<% @comments.each do |comment| %> - <% next if comment.new_record? %> -
- <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment}, - :confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %> -
-

<%= avatar(comment.author, :size => "24") %><%= authoring comment.created_on, comment.author %>

- <%= textilizable(comment.comments) %> -<% end if @comments.any? %> -
- -<% if authorize_for 'comments', 'create' %> -

<%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %>

-<% form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %> -
- <%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit' %> - <%= wikitoolbar_for 'comment_comments' %> -
-

<%= submit_tag l(:button_add) %>

-<% end %> -<% end %> - -<% html_title @news.title -%> - -<% content_for :header_tags do %> - <%= stylesheet_link_tag 'scm' %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/_edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/_edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,4 @@ +<% labelled_tabular_form_for :project, @project, :url => project_path(@project), :html => {:method => (@project.new_record? ? :post : :put) } do |f| %> +<%= render :partial => 'form', :locals => { :f => f } %> +<%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/_edit.rhtml --- a/app/views/projects/_edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -<% labelled_tabular_form_for :project, @project, :url => project_path(@project), :html => {:method => (@project.new_record? ? :post : :put) } do |f| %> -<%= render :partial => 'form', :locals => { :f => f } %> -<%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,64 @@ +<%= error_messages_for 'project' %> + +
+ +

<%= f.text_field :name, :required => true, :size => 60 %>

+ +<% unless @project.allowed_parents.compact.empty? %> +

<%= label(:project, :parent_id, l(:field_parent)) %><%= parent_project_select_tag(@project) %>

+<% end %> + +

<%= f.text_area :description, :rows => 5, :class => 'wiki-edit' %>

+

<%= f.text_field :identifier, :required => true, :size => 60, :disabled => @project.identifier_frozen? %> +<% unless @project.identifier_frozen? %> +
<%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info) %> +<% end %>

+

<%= f.text_field :homepage, :size => 60 %>

+

<%= f.check_box :is_public %>

+<%= wikitoolbar_for 'project_description' %> + +<% @project.custom_field_values.each do |value| %> +

<%= custom_field_tag_with_label :project, value %>

+<% end %> +<%= call_hook(:view_projects_form, :project => @project, :form => f) %> +
+ +<% if @project.new_record? %> +
<%= l(:label_module_plural) %> +<% Redmine::AccessControl.available_project_modules.each do |m| %> + +<% end %> +<%= hidden_field_tag 'project[enabled_module_names][]', '' %> +<%= javascript_tag 'observeProjectModules()' %> +
+<% end %> + +<% if @project.new_record? || @project.module_enabled?('issue_tracking') %> +<% unless @trackers.empty? %> +
<%=l(:label_tracker_plural)%> +<% @trackers.each do |tracker| %> + +<% end %> +<%= hidden_field_tag 'project[tracker_ids][]', '' %> +
+<% end %> + +<% unless @issue_custom_fields.empty? %> +
<%=l(:label_custom_field_plural)%> +<% @issue_custom_fields.each do |custom_field| %> + +<% end %> +<%= hidden_field_tag 'project[issue_custom_field_ids][]', '' %> +
+<% end %> +<% end %> + diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/_form.rhtml --- a/app/views/projects/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +0,0 @@ -<%= error_messages_for 'project' %> - -
- -

<%= f.text_field :name, :required => true, :size => 60 %>

- -<% unless @project.allowed_parents.compact.empty? %> -

<%= label(:project, :parent_id, l(:field_parent)) %><%= parent_project_select_tag(@project) %>

-<% end %> - -

<%= f.text_area :description, :rows => 5, :class => 'wiki-edit' %>

-

<%= f.text_field :identifier, :required => true, :size => 60, :disabled => @project.identifier_frozen? %> -<% unless @project.identifier_frozen? %> -
<%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info) %> -<% end %>

-

<%= f.text_field :homepage, :size => 60 %>

-

<%= f.check_box :is_public %>

-<%= wikitoolbar_for 'project_description' %> - -<% @project.custom_field_values.each do |value| %> -

<%= custom_field_tag_with_label :project, value %>

-<% end %> -<%= call_hook(:view_projects_form, :project => @project, :form => f) %> -
- -<% if @project.new_record? %> -
<%= l(:label_module_plural) %> -<% Redmine::AccessControl.available_project_modules.each do |m| %> - -<% end %> -<%= hidden_field_tag 'project[enabled_module_names][]', '' %> -<%= javascript_tag 'observeProjectModules()' %> -
-<% end %> - -<% if @project.new_record? || @project.module_enabled?('issue_tracking') %> -<% unless @trackers.empty? %> -
<%=l(:label_tracker_plural)%> -<% @trackers.each do |tracker| %> - -<% end %> -<%= hidden_field_tag 'project[tracker_ids][]', '' %> -
-<% end %> - -<% unless @issue_custom_fields.empty? %> -
<%=l(:label_custom_field_plural)%> -<% @issue_custom_fields.each do |custom_field| %> - -<% end %> -<%= hidden_field_tag 'project[issue_custom_field_ids][]', '' %> -
-<% end %> -<% end %> - diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/copy.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/copy.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,20 @@ +

<%=l(:label_project_new)%>

+ +<% labelled_tabular_form_for :project, @project, :url => { :action => "copy" } do |f| %> +<%= render :partial => 'form', :locals => { :f => f } %> + +
<%= l(:button_copy) %> + + + + + + + + <%= hidden_field_tag 'only[]', '' %> +
+ +
+ +<%= submit_tag l(:button_copy) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/copy.rhtml --- a/app/views/projects/copy.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -

<%=l(:label_project_new)%>

- -<% labelled_tabular_form_for :project, @project, :url => { :action => "copy" } do |f| %> -<%= render :partial => 'form', :locals => { :f => f } %> - -
<%= l(:button_copy) %> - - - - - - - - <%= hidden_field_tag 'only[]', '' %> -
- -
- -<%= submit_tag l(:button_copy) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/destroy.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/destroy.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,16 @@ +

<%=l(:label_confirmation)%>

+
+

<%=h @project_to_destroy %>
+<%=l(:text_project_destroy_confirmation)%> + +<% if @project_to_destroy.descendants.any? %> +
<%= l(:text_subprojects_destroy_warning, content_tag('strong', h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')))) %> +<% end %> +

+

+ <% form_tag(project_path(@project_to_destroy), :method => :delete) do %> + + <%= submit_tag l(:button_delete) %> + <% end %> +

+
diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/destroy.rhtml --- a/app/views/projects/destroy.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -

<%=l(:label_confirmation)%>

-
-

<%=h @project_to_destroy %>
-<%=l(:text_project_destroy_confirmation)%> - -<% if @project_to_destroy.descendants.any? %> -
<%= l(:text_subprojects_destroy_warning, content_tag('strong', h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')))) %> -<% end %> -

-

- <% form_tag(project_path(@project_to_destroy), :method => :delete) do %> - - <%= submit_tag l(:button_delete) %> - <% end %> -

-
diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/index.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,26 @@ +<% content_for :header_tags do %> + <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %> +<% end %> + +
+ <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %> + <%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %> + <%= link_to(l(:label_overall_spent_time), { :controller => 'time_entries' }) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %> + <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%> +
+ +

<%=l(:label_project_plural)%>

+ +<%= render_project_hierarchy(@projects)%> + +<% if User.current.logged? %> +

+<%= l(:label_my_projects) %> +

+<% end %> + +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> +<% end %> + +<% html_title(l(:label_project_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/index.rhtml --- a/app/views/projects/index.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -<% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %> -<% end %> - -
- <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %> - <%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %> - <%= link_to(l(:label_overall_spent_time), { :controller => 'time_entries' }) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %> - <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%> -
- -

<%=l(:label_project_plural)%>

- -<%= render_project_hierarchy(@projects)%> - -<% if User.current.logged? %> -

-<%= l(:label_my_projects) %> -

-<% end %> - -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> -<% end %> - -<% html_title(l(:label_project_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/list_members.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/list_members.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,13 @@ +

<%=l(:label_member_plural)%>

+ +<% if @members.empty? %>

<%= l(:label_no_data) %>

<% end %> + +<% members = @members.group_by {|m| m.role } %> +<% members.keys.sort{|x,y| x.position <=> y.position}.each do |role| %> +

<%= role.name %>

+ +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/list_members.rhtml --- a/app/views/projects/list_members.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -

<%=l(:label_member_plural)%>

- -<% if @members.empty? %>

<%= l(:label_no_data) %>

<% end %> - -<% members = @members.group_by {|m| m.role } %> -<% members.keys.sort{|x,y| x.position <=> y.position}.each do |role| %> -

<%= role.name %>

- -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/settings.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,5 @@ +

<%=l(:label_settings)%>

+ +<%= render_tabs project_settings_tabs %> + +<% html_title(l(:label_settings)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings.rhtml --- a/app/views/projects/settings.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -

<%=l(:label_settings)%>

- -<%= render_tabs project_settings_tabs %> - -<% html_title(l(:label_settings)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_activities.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/settings/_activities.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,42 @@ +<% form_tag(project_project_enumerations_path(@project), :method => :put, :class => "tabular") do %> + + + + + + <% TimeEntryActivity.new.available_custom_fields.each do |value| %> + + <% end %> + + + + <% @project.activities(true).each do |enumeration| %> + <% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %> + + + + <% enumeration.custom_field_values.each do |value| %> + + <% end %> + + + <% end %> + <% end %> +
<%= l(:field_name) %><%= l(:enumeration_system_activity) %><%= h value.name %><%= l(:field_active) %>
+ <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %> + <%= h(enumeration) %> + <%= checked_image !enumeration.project %> + <%= custom_field_tag "enumerations[#{enumeration.id}]", value %> + + <%= ff.check_box :active %> +
+ +
+<%= link_to(l(:button_reset), project_project_enumerations_path(@project), + :method => :delete, + :confirm => l(:text_are_you_sure), + :class => 'icon icon-del') %> +
+ +<%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_activities.rhtml --- a/app/views/projects/settings/_activities.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +0,0 @@ -<% form_tag(project_project_enumerations_path(@project), :method => :put, :class => "tabular") do %> - - - - - - <% TimeEntryActivity.new.available_custom_fields.each do |value| %> - - <% end %> - - - - <% @project.activities(true).each do |enumeration| %> - <% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %> - - - - <% enumeration.custom_field_values.each do |value| %> - - <% end %> - - - <% end %> - <% end %> -
<%= l(:field_name) %><%= l(:enumeration_system_activity) %><%= h value.name %><%= l(:field_active) %>
- <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %> - <%= h(enumeration) %> - <%= checked_image !enumeration.project %> - <%= custom_field_tag "enumerations[#{enumeration.id}]", value %> - - <%= ff.check_box :active %> -
- -
-<%= link_to(l(:button_reset), project_project_enumerations_path(@project), - :method => :delete, - :confirm => l(:text_are_you_sure), - :class => 'icon icon-del') %> -
- -<%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_boards.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/settings/_boards.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,32 @@ +<% if @project.boards.any? %> + + + + + + + + +<% @project.boards.each do |board| + next if board.new_record? %> + + + + + + +<% end %> + +
<%= l(:label_board) %><%= l(:field_description) %>
<%=h board.name %><%=h board.description %> + <% if authorize_for("boards", "edit") %> + <%= reorder_links('board', {:controller => 'boards', :action => 'edit', :project_id => @project, :id => board}) %> + <% end %> + + <%= link_to_if_authorized l(:button_edit), {:controller => 'boards', :action => 'edit', :project_id => @project, :id => board}, :class => 'icon icon-edit' %> + <%= link_to_if_authorized l(:button_delete), {:controller => 'boards', :action => 'destroy', :project_id => @project, :id => board}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> +
+<% else %> +

<%= l(:label_no_data) %>

+<% end %> + +

<%= link_to_if_authorized l(:label_board_new), {:controller => 'boards', :action => 'new', :project_id => @project} %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_boards.rhtml --- a/app/views/projects/settings/_boards.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -<% if @project.boards.any? %> - - - - - - - - -<% @project.boards.each do |board| - next if board.new_record? %> - - - - - - -<% end %> - -
<%= l(:label_board) %><%= l(:field_description) %>
<%=h board.name %><%=h board.description %> - <% if authorize_for("boards", "edit") %> - <%= reorder_links('board', {:controller => 'boards', :action => 'edit', :project_id => @project, :id => board}) %> - <% end %> - - <%= link_to_if_authorized l(:button_edit), {:controller => 'boards', :action => 'edit', :project_id => @project, :id => board}, :class => 'icon icon-edit' %> - <%= link_to_if_authorized l(:button_delete), {:controller => 'boards', :action => 'destroy', :project_id => @project, :id => board}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> -
-<% else %> -

<%= l(:label_no_data) %>

-<% end %> - -

<%= link_to_if_authorized l(:label_board_new), {:controller => 'boards', :action => 'new', :project_id => @project} %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_issue_categories.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/settings/_issue_categories.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,27 @@ +<% if @project.issue_categories.any? %> + + + + + + + +<% for category in @project.issue_categories %> + <% unless category.new_record? %> + + + + + + <% end %> +<% end %> + +
<%= l(:label_issue_category) %><%= l(:field_assigned_to) %>
<%=h(category.name) %><%=h(category.assigned_to.name) if category.assigned_to %> + <%= link_to_if_authorized l(:button_edit), { :controller => 'issue_categories', :action => 'edit', :id => category }, :class => 'icon icon-edit' %> + <%= link_to_if_authorized l(:button_delete), {:controller => 'issue_categories', :action => 'destroy', :id => category}, :method => :post, :class => 'icon icon-del' %> +
+<% else %> +

<%= l(:label_no_data) %>

+<% end %> + +

<%= link_to_if_authorized l(:label_issue_category_new), :controller => 'issue_categories', :action => 'new', :project_id => @project %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_issue_categories.rhtml --- a/app/views/projects/settings/_issue_categories.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -<% if @project.issue_categories.any? %> - - - - - - - -<% for category in @project.issue_categories %> - <% unless category.new_record? %> - - - - - - <% end %> -<% end %> - -
<%= l(:label_issue_category) %><%= l(:field_assigned_to) %>
<%=h(category.name) %><%=h(category.assigned_to.name) if category.assigned_to %> - <%= link_to_if_authorized l(:button_edit), { :controller => 'issue_categories', :action => 'edit', :id => category }, :class => 'icon icon-edit' %> - <%= link_to_if_authorized l(:button_delete), {:controller => 'issue_categories', :action => 'destroy', :id => category}, :method => :post, :class => 'icon icon-del' %> -
-<% else %> -

<%= l(:label_no_data) %>

-<% end %> - -

<%= link_to_if_authorized l(:label_issue_category_new), :controller => 'issue_categories', :action => 'new', :project_id => @project %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_members.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/settings/_members.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,84 @@ +<%= error_messages_for 'member' %> +<% roles = Role.find_all_givable + members = @project.member_principals.find(:all, :include => [:roles, :principal]).sort %> + +
+<% if members.any? %> + + + + + + <%= call_hook(:view_projects_settings_members_table_header, :project => @project) %> + + + <% members.each do |member| %> + <% next if member.new_record? %> + + + + + <%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %> + +<% end; reset_cycle %> + +
<%= l(:label_user) %> / <%= l(:label_group) %><%= l(:label_role_plural) %>
<%= link_to_user member.principal %> + <%=h member.roles.sort.collect(&:to_s).join(', ') %> + <% if authorize_for('members', 'edit') %> + <% 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| %> +

<% roles.each do |role| %> +
+ <% end %>

+ <%= hidden_field_tag 'member[role_ids][]', '' %> +

<%= 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;" %>

+ <% end %> + <% end %> +
+ <%= 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? %> +
+<% else %> +

<%= l(:label_no_data) %>

+<% end %> +
+ + +<% 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| %> +
<%=l(:label_member_new)%> + +

<%= label_tag "principal_search", l(:label_principal_search) %><%= text_field_tag 'principal_search', nil %>

+ <%= observe_field(:principal_search, + :frequency => 0.5, + :update => :principals, + :url => { :controller => 'members', :action => 'autocomplete_for_member', :id => @project }, + :with => 'q') + %> + +
+ <%= principals_check_box_tags 'member[user_ids][]', principals %> +
+ +

<%= l(:label_role_plural) %>: + <% roles.each do |role| %> + + <% end %>

+ +

<%= submit_tag l(:button_add), :id => 'member-add-submit' %>

+
+ <% end %> +<% end %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_members.rhtml --- a/app/views/projects/settings/_members.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,84 +0,0 @@ -<%= error_messages_for 'member' %> -<% roles = Role.find_all_givable - members = @project.member_principals.find(:all, :include => [:roles, :principal]).sort %> - -
-<% if members.any? %> - - - - - - <%= call_hook(:view_projects_settings_members_table_header, :project => @project) %> - - - <% members.each do |member| %> - <% next if member.new_record? %> - - - - - <%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %> - -<% end; reset_cycle %> - -
<%= l(:label_user) %> / <%= l(:label_group) %><%= l(:label_role_plural) %>
<%= link_to_user member.principal %> - <%=h member.roles.sort.collect(&:to_s).join(', ') %> - <% if authorize_for('members', 'edit') %> - <% 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| %> -

<% roles.each do |role| %> -
- <% end %>

- <%= hidden_field_tag 'member[role_ids][]', '' %> -

<%= 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;" %>

- <% end %> - <% end %> -
- <%= 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? %> -
-<% else %> -

<%= l(:label_no_data) %>

-<% end %> -
- - -<% 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| %> -
<%=l(:label_member_new)%> - -

<%= label_tag "principal_search", l(:label_principal_search) %><%= text_field_tag 'principal_search', nil %>

- <%= observe_field(:principal_search, - :frequency => 0.5, - :update => :principals, - :url => { :controller => 'members', :action => 'autocomplete_for_member', :id => @project }, - :with => 'q') - %> - -
- <%= principals_check_box_tags 'member[user_ids][]', principals %> -
- -

<%= l(:label_role_plural) %>: - <% roles.each do |role| %> - - <% end %>

- -

<%= submit_tag l(:button_add), :id => 'member-add-submit' %>

-
- <% end %> -<% end %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_modules.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/settings/_modules.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,19 @@ +<% form_for :project, @project, + :url => { :action => 'modules', :id => @project }, + :html => {:id => 'modules-form'} do |f| %> + +
+
+<%= l(:text_select_project_modules) %> + +<% Redmine::AccessControl.available_project_modules.each do |m| %> +

+<% end %> +
+
+ +

<%= check_all_links 'modules-form' %>

+

<%= submit_tag l(:button_save) %>

+ +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_modules.rhtml --- a/app/views/projects/settings/_modules.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -<% form_for :project, @project, - :url => { :action => 'modules', :id => @project }, - :html => {:id => 'modules-form'} do |f| %> - -
-
-<%= l(:text_select_project_modules) %> - -<% Redmine::AccessControl.available_project_modules.each do |m| %> -

-<% end %> -
-
- -

<%= check_all_links 'modules-form' %>

-

<%= submit_tag l(:button_save) %>

- -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_repository.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/settings/_repository.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,41 @@ +<% remote_form_for :repository, @repository, + :url => { :controller => 'repositories', :action => 'edit', :id => @project }, + :builder => TabularFormBuilder, + :lang => current_language do |f| %> + +<%= error_messages_for 'repository' %> + +
+

+<%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %> +<% if @repository && ! @repository.class.scm_available %> +
+ <%= content_tag 'span', l(:text_scm_command_not_available), :class => 'error' %> +<% end %> +

+<% button_disabled = true %> +<% if @repository %> +<% button_disabled = ! @repository.class.scm_available %> +<%= repository_field_tags(f, @repository)%> +<% end %> +
+ +
+<% if @repository && !@repository.new_record? %> +<%= link_to(l(:label_user_plural), + { + :controller => 'repositories', + :action => 'committers', + :id => @project + }, + :class => 'icon icon-user') %> +<%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project}, + :confirm => l(:text_are_you_sure), + :method => :post, + :class => 'icon icon-del') %> +<% end %> +
+ +<%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), + :disabled => button_disabled) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_repository.rhtml --- a/app/views/projects/settings/_repository.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -<% remote_form_for :repository, @repository, - :url => { :controller => 'repositories', :action => 'edit', :id => @project }, - :builder => TabularFormBuilder, - :lang => current_language do |f| %> - -<%= error_messages_for 'repository' %> - -
-

-<%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %> -<% if @repository && ! @repository.class.scm_available %> -
- <%= content_tag 'span', l(:text_scm_command_not_available), :class => 'error' %> -<% end %> -

-<% button_disabled = true %> -<% if @repository %> -<% button_disabled = ! @repository.class.scm_available %> -<%= repository_field_tags(f, @repository)%> -<% end %> -
- -
-<% if @repository && !@repository.new_record? %> -<%= link_to(l(:label_user_plural), - { - :controller => 'repositories', - :action => 'committers', - :id => @project - }, - :class => 'icon icon-user') %> -<%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project}, - :confirm => l(:text_are_you_sure), - :method => :post, - :class => 'icon icon-del') %> -<% end %> -
- -<%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), - :disabled => button_disabled) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_versions.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/settings/_versions.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,41 @@ +<% if @project.shared_versions.any? %> + + + + + + + + + + + +<% for version in @project.shared_versions.sort %> + + + + + + + + + +<% end; reset_cycle %> + +
<%= l(:label_version) %><%= l(:field_effective_date) %><%= l(:field_description) %><%= l(:field_status) %><%= l(:field_sharing) %><%= l(:label_wiki_page) %>
<%= link_to_version version %><%= format_date(version.effective_date) %><%=h version.description %><%= l("version_status_#{version.status}") %><%= link_to_if_authorized(h(version.wiki_page_title), {:controller => 'wiki', :action => 'show', :project_id => version.project, :id => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %> + <% if version.project == @project %> + <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %> + <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %> + <% end %> +
+<% else %> +

<%= l(:label_no_data) %>

+<% end %> + +
+<% if @project.versions.any? %> + <%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :method => :put %> +<% end %> +
+ +

<%= link_to_if_authorized l(:label_version_new), :controller => 'versions', :action => 'new', :project_id => @project %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_versions.rhtml --- a/app/views/projects/settings/_versions.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -<% if @project.shared_versions.any? %> - - - - - - - - - - - -<% for version in @project.shared_versions.sort %> - - - - - - - - - -<% end; reset_cycle %> - -
<%= l(:label_version) %><%= l(:field_effective_date) %><%= l(:field_description) %><%= l(:field_status) %><%= l(:field_sharing) %><%= l(:label_wiki_page) %>
<%= link_to_version version %><%= format_date(version.effective_date) %><%=h version.description %><%= l("version_status_#{version.status}") %><%= link_to_if_authorized(h(version.wiki_page_title), {:controller => 'wiki', :action => 'show', :project_id => version.project, :id => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %> - <% if version.project == @project %> - <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %> - <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %> - <% end %> -
-<% else %> -

<%= l(:label_no_data) %>

-<% end %> - -
-<% if @project.versions.any? %> - <%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :method => :put %> -<% end %> -
- -

<%= link_to_if_authorized l(:label_version_new), :controller => 'versions', :action => 'new', :project_id => @project %>

diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_wiki.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/settings/_wiki.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,19 @@ +<% remote_form_for :wiki, @wiki, + :url => { :controller => 'wikis', :action => 'edit', :id => @project }, + :builder => TabularFormBuilder, + :lang => current_language do |f| %> + +<%= error_messages_for 'wiki' %> + +
+

<%= f.text_field :start_page, :size => 60, :required => true %>
+<%= l(:text_unallowed_characters) %>: , . / ? ; : |

+
+ +
+<%= link_to(l(:button_delete), {:controller => 'wikis', :action => 'destroy', :id => @project}, + :class => 'icon icon-del') if @wiki && !@wiki.new_record? %> +
+ +<%= submit_tag((@wiki.nil? || @wiki.new_record?) ? l(:button_create) : l(:button_save)) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/settings/_wiki.rhtml --- a/app/views/projects/settings/_wiki.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -<% remote_form_for :wiki, @wiki, - :url => { :controller => 'wikis', :action => 'edit', :id => @project }, - :builder => TabularFormBuilder, - :lang => current_language do |f| %> - -<%= error_messages_for 'wiki' %> - -
-

<%= f.text_field :start_page, :size => 60, :required => true %>
-<%= l(:text_unallowed_characters) %>: , . / ? ; : |

-
- -
-<%= link_to(l(:button_delete), {:controller => 'wikis', :action => 'destroy', :id => @project}, - :class => 'icon icon-del') if @wiki && !@wiki.new_record? %> -
- -<%= submit_tag((@wiki.nil? || @wiki.new_record?) ? l(:button_create) : l(:button_save)) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/show.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/projects/show.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,80 @@ +
+ <% 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 %> +
+ +

<%=l(:label_overview)%>

+ +
+
+ <%= textilizable @project.description %> +
+ + + <% if User.current.allowed_to?(:view_issues, @project) %> +
+

<%=l(:label_issue_tracking)%>

+ +

+ <%= 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 %> +

+
+ <% end %> + <%= call_hook(:view_projects_show_left, :project => @project) %> +
+ +
+ <%= render :partial => 'members_box' %> + + <% if @news.any? && authorize_for('news', 'index') %> +
+

<%=l(:label_news_latest)%>

+ <%= render :partial => 'news/news', :collection => @news %> +

<%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %>

+
+ <% end %> + <%= call_hook(:view_projects_show_right, :project => @project) %> +
+ +<% content_for :sidebar do %> + <% if @total_hours.present? %> +

<%= l(:label_spent_time) %>

+

<%= l_hours(@total_hours) %>

+

<%= 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}) %>

+ <% end %> + <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %> +<% 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)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/projects/show.rhtml --- a/app/views/projects/show.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +0,0 @@ -
- <% 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 %> -
- -

<%=l(:label_overview)%>

- -
-
- <%= textilizable @project.description %> -
- - - <% if User.current.allowed_to?(:view_issues, @project) %> -
-

<%=l(:label_issue_tracking)%>

- -

- <%= 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 %> -

-
- <% end %> - <%= call_hook(:view_projects_show_left, :project => @project) %> -
- -
- <%= render :partial => 'members_box' %> - - <% if @news.any? && authorize_for('news', 'index') %> -
-

<%=l(:label_news_latest)%>

- <%= render :partial => 'news/news', :collection => @news %> -

<%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %>

-
- <% end %> - <%= call_hook(:view_projects_show_right, :project => @project) %> -
- -<% content_for :sidebar do %> - <% if @total_hours.present? %> -

<%= l(:label_spent_time) %>

-

<%= l_hours(@total_hours) %>

-

<%= 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}) %>

- <% end %> - <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %> -<% 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)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/queries/_columns.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/queries/_columns.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,26 @@ + + + + + + + +
<%= select_tag 'available_columns', + options_for_select((query.available_columns - query.columns).collect {|column| [column.caption, column.name]}), + :multiple => true, :size => 10, :style => "width:150px" %> + +
+ +
<%= select_tag 'c[]', + options_for_select(query.columns.collect {|column| [column.caption, column.name]}), + :id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px" %> + +
+ +
+ +<% content_for :header_tags do %> +<%= javascript_include_tag 'select_list_move' %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/queries/_columns.rhtml --- a/app/views/queries/_columns.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ - - - - - - - -
<%= select_tag 'available_columns', - options_for_select((query.available_columns - query.columns).collect {|column| [column.caption, column.name]}), - :multiple => true, :size => 10, :style => "width:150px" %> - -
- -
<%= select_tag 'c[]', - options_for_select(query.columns.collect {|column| [column.caption, column.name]}), - :id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px" %> - -
- -
- -<% content_for :header_tags do %> -<%= javascript_include_tag 'select_list_move' %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/queries/_filters.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/queries/_filters.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,123 @@ + + + + + + + +
+ +<% query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.each do |filter| %> + <% field = filter[0] + options = filter[1] %> + id="tr_<%= field %>" class="filter"> + + + + +<% end %> +
+ <%= check_box_tag 'f[]', field, query.has_filter?(field), :onclick => "toggle_filter('#{field}');", :id => "cb_#{field}" %> + + + <%= select_tag "op[#{field}]", options_for_select(operators_for_select(options[:type]), query.operator_for(field)), :id => "operators_#{field}", :onchange => "toggle_operator('#{field}');", :class => "select-small", :style => "vertical-align: top;" %> + + + +
+
+<%= label_tag('add_filter_select', l(:label_filter_add)) %>: +<%= select_tag 'add_filter_select', options_for_select([["",""]] + query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.collect{|field| [ field[1][:name] || l(("field_"+field[0].to_s.gsub(/_id$/, "")).to_sym), field[0]] unless query.has_filter?(field[0])}.compact), + :onchange => "add_filter();", + :class => "select-small", + :name => nil %> +
+<%= hidden_field_tag 'f[]', '' %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/queries/_filters.rhtml --- a/app/views/queries/_filters.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,123 +0,0 @@ - - - - - - - -
- -<% query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.each do |filter| %> - <% field = filter[0] - options = filter[1] %> - id="tr_<%= field %>" class="filter"> - - - - -<% end %> -
- <%= check_box_tag 'f[]', field, query.has_filter?(field), :onclick => "toggle_filter('#{field}');", :id => "cb_#{field}" %> - - - <%= select_tag "op[#{field}]", options_for_select(operators_for_select(options[:type]), query.operator_for(field)), :id => "operators_#{field}", :onchange => "toggle_operator('#{field}');", :class => "select-small", :style => "vertical-align: top;" %> - - - -
-
-<%= label_tag('add_filter_select', l(:label_filter_add)) %>: -<%= select_tag 'add_filter_select', options_for_select([["",""]] + query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.collect{|field| [ field[1][:name] || l(("field_"+field[0].to_s.gsub(/_id$/, "")).to_sym), field[0]] unless query.has_filter?(field[0])}.compact), - :onchange => "add_filter();", - :class => "select-small", - :name => nil %> -
-<%= hidden_field_tag 'f[]', '' %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/queries/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/queries/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,45 @@ +<%= error_messages_for 'query' %> +<%= hidden_field_tag 'confirm', 1 %> + +
+
+

+<%= text_field 'query', 'name', :size => 80 %>

+ +<% if User.current.admin? || User.current.allowed_to?(:manage_public_queries, @project) %> +

+<%= check_box 'query', 'is_public', + :onchange => (User.current.admin? ? nil : 'if (this.checked) {$("query_is_for_all").checked = false; $("query_is_for_all").disabled = true;} else {$("query_is_for_all").disabled = false;}') %>

+<% end %> + +

+<%= check_box_tag 'query_is_for_all', 1, @query.project.nil?, + :disabled => (!@query.new_record? && (@query.project.nil? || (@query.is_public? && !User.current.admin?))) %>

+ +

+<%= check_box_tag 'default_columns', 1, @query.has_default_columns?, :id => 'query_default_columns', + :onclick => 'if (this.checked) {Element.hide("columns")} else {Element.show("columns")}' %>

+ +

+<%= select 'query', 'group_by', @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, :include_blank => true %>

+
+ +
<%= l(:label_filter_plural) %> +<%= render :partial => 'queries/filters', :locals => {:query => query}%> +
+ +
<%= l(:label_sort) %> +<% 3.times do |i| %> +<%= i+1 %>: <%= select_tag("query[sort_criteria][#{i}][]", + options_for_select([[]] + query.available_columns.select(&:sortable?).collect {|column| [column.caption, column.name.to_s]}, @query.sort_criteria_key(i))) %> + <%= select_tag("query[sort_criteria][#{i}][]", + options_for_select([[], [l(:label_ascending), 'asc'], [l(:label_descending), 'desc']], @query.sort_criteria_order(i))) %>
+<% end %> +
+ +<% content_tag 'fieldset', :id => 'columns', :style => (query.has_default_columns? ? 'display:none;' : nil) do %> +<%= l(:field_column_names) %> +<%= render :partial => 'queries/columns', :locals => {:query => query}%> +<% end %> + +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/queries/_form.rhtml --- a/app/views/queries/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -<%= error_messages_for 'query' %> -<%= hidden_field_tag 'confirm', 1 %> - -
-
-

-<%= text_field 'query', 'name', :size => 80 %>

- -<% if User.current.admin? || User.current.allowed_to?(:manage_public_queries, @project) %> -

-<%= check_box 'query', 'is_public', - :onchange => (User.current.admin? ? nil : 'if (this.checked) {$("query_is_for_all").checked = false; $("query_is_for_all").disabled = true;} else {$("query_is_for_all").disabled = false;}') %>

-<% end %> - -

-<%= check_box_tag 'query_is_for_all', 1, @query.project.nil?, - :disabled => (!@query.new_record? && (@query.project.nil? || (@query.is_public? && !User.current.admin?))) %>

- -

-<%= check_box_tag 'default_columns', 1, @query.has_default_columns?, :id => 'query_default_columns', - :onclick => 'if (this.checked) {Element.hide("columns")} else {Element.show("columns")}' %>

- -

-<%= select 'query', 'group_by', @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, :include_blank => true %>

-
- -
<%= l(:label_filter_plural) %> -<%= render :partial => 'queries/filters', :locals => {:query => query}%> -
- -
<%= l(:label_sort) %> -<% 3.times do |i| %> -<%= i+1 %>: <%= select_tag("query[sort_criteria][#{i}][]", - options_for_select([[]] + query.available_columns.select(&:sortable?).collect {|column| [column.caption, column.name.to_s]}, @query.sort_criteria_key(i))) %> - <%= select_tag("query[sort_criteria][#{i}][]", - options_for_select([[], [l(:label_ascending), 'asc'], [l(:label_descending), 'desc']], @query.sort_criteria_order(i))) %>
-<% end %> -
- -<% content_tag 'fieldset', :id => 'columns', :style => (query.has_default_columns? ? 'display:none;' : nil) do %> -<%= l(:field_column_names) %> -<%= render :partial => 'queries/columns', :locals => {:query => query}%> -<% end %> - -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/queries/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/queries/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%= l(:label_query) %>

+ +<% form_tag({:action => 'edit', :id => @query}, :onsubmit => 'selectAllOptions("selected_columns");') do %> + <%= render :partial => 'form', :locals => {:query => @query} %> + <%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/queries/edit.rhtml --- a/app/views/queries/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%= l(:label_query) %>

- -<% form_tag({:action => 'edit', :id => @query}, :onsubmit => 'selectAllOptions("selected_columns");') do %> - <%= render :partial => 'form', :locals => {:query => @query} %> - <%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/queries/index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/queries/index.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,27 @@ +
+<%= link_to_if_authorized l(:label_query_new), {:controller => 'queries', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %> +
+ +

<%= l(:label_query_plural) %>

+ +<% if @queries.empty? %> +

<%=l(:label_no_data)%>

+<% else %> + + <% @queries.each do |query| %> + + + + + <% end %> +
+ <%= link_to query.name, :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %> + + + <% if query.editable_by?(User.current) %> + <%= link_to l(:button_edit), {:controller => 'queries', :action => 'edit', :id => query}, :class => 'icon icon-edit' %> + <%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => query}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> + + <% end %> +
+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/queries/index.rhtml --- a/app/views/queries/index.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -
-<%= link_to_if_authorized l(:label_query_new), {:controller => 'queries', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %> -
- -

<%= l(:label_query_plural) %>

- -<% if @queries.empty? %> -

<%=l(:label_no_data)%>

-<% else %> - - <% @queries.each do |query| %> - - - - - <% end %> -
- <%= link_to query.name, :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %> - - - <% if query.editable_by?(User.current) %> - <%= link_to l(:button_edit), {:controller => 'queries', :action => 'edit', :id => query}, :class => 'icon icon-edit' %> - <%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => query}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> - - <% end %> -
-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/queries/new.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/queries/new.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%= l(:label_query_new) %>

+ +<% form_tag({:action => 'new', :project_id => @query.project}, :onsubmit => 'selectAllOptions("selected_columns");') do %> + <%= render :partial => 'form', :locals => {:query => @query} %> + <%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/queries/new.rhtml --- a/app/views/queries/new.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%= l(:label_query_new) %>

- -<% form_tag({:action => 'new', :project_id => @query.project}, :onsubmit => 'selectAllOptions("selected_columns");') do %> - <%= render :partial => 'form', :locals => {:query => @query} %> - <%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/reports/_details.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/reports/_details.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,53 @@ +<% if @statuses.empty? or rows.empty? %> +

<%=l(:label_no_data)%>

+<% else %> +<% col_width = 70 / (@statuses.length+3) %> + + + +<% for status in @statuses %> + +<% end %> + + + + + +<% for row in rows %> +"> + + <% for status in @statuses %> + + <% end %> + + + + +<% end %> + +
<%= status.name %><%=l(:label_open_issues_plural)%><%=l(:label_closed_issues_plural)%><%=l(:label_total)%>
<%= link_to row.name, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), + :set_filter => 1, + :subproject_id => '!*', + "#{field_name}" => row.id %><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, + :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), + :set_filter => 1, + :subproject_id => '!*', + "status_id" => status.id, + "#{field_name}" => row.id %><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, + :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), + :set_filter => 1, + :subproject_id => '!*', + "#{field_name}" => row.id, + "status_id" => "o" %><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, + :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), + :set_filter => 1, + :subproject_id => '!*', + "#{field_name}" => row.id, + "status_id" => "c" %><%= aggregate_link data, { field_name => row.id }, + :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), + :set_filter => 1, + :subproject_id => '!*', + "#{field_name}" => row.id, + "status_id" => "*" %>
+<% end + reset_cycle %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/reports/_details.rhtml --- a/app/views/reports/_details.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +0,0 @@ -<% if @statuses.empty? or rows.empty? %> -

<%=l(:label_no_data)%>

-<% else %> -<% col_width = 70 / (@statuses.length+3) %> - - - -<% for status in @statuses %> - -<% end %> - - - - - -<% for row in rows %> -"> - - <% for status in @statuses %> - - <% end %> - - - - -<% end %> - -
<%= status.name %><%=l(:label_open_issues_plural)%><%=l(:label_closed_issues_plural)%><%=l(:label_total)%>
<%= link_to row.name, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), - :set_filter => 1, - :subproject_id => '!*', - "#{field_name}" => row.id %><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, - :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), - :set_filter => 1, - :subproject_id => '!*', - "status_id" => status.id, - "#{field_name}" => row.id %><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, - :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), - :set_filter => 1, - :subproject_id => '!*', - "#{field_name}" => row.id, - "status_id" => "o" %><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, - :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), - :set_filter => 1, - :subproject_id => '!*', - "#{field_name}" => row.id, - "status_id" => "c" %><%= aggregate_link data, { field_name => row.id }, - :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), - :set_filter => 1, - :subproject_id => '!*', - "#{field_name}" => row.id, - "status_id" => "*" %>
-<% end - reset_cycle %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/reports/_simple.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/reports/_simple.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,41 @@ +<% if @statuses.empty? or rows.empty? %> +

<%=l(:label_no_data)%>

+<% else %> + + + + + + + + +<% for row in rows %> +"> + + + + + +<% end %> + +
<%=l(:label_open_issues_plural)%><%=l(:label_closed_issues_plural)%><%=l(:label_total)%>
<%= link_to row.name, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), + :set_filter => 1, + :subproject_id => '!*', + "#{field_name}" => row.id %><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, + :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), + :set_filter => 1, + :subproject_id => '!*', + "#{field_name}" => row.id, + "status_id" => "o" %><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, + :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), + :set_filter => 1, + :subproject_id => '!*', + "#{field_name}" => row.id, + "status_id" => "c" %><%= aggregate_link data, { field_name => row.id }, + :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), + :set_filter => 1, + :subproject_id => '!*', + "#{field_name}" => row.id, + "status_id" => "*" %>
+<% end + reset_cycle %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/reports/_simple.rhtml --- a/app/views/reports/_simple.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -<% if @statuses.empty? or rows.empty? %> -

<%=l(:label_no_data)%>

-<% else %> - - - - - - - - -<% for row in rows %> -"> - - - - - -<% end %> - -
<%=l(:label_open_issues_plural)%><%=l(:label_closed_issues_plural)%><%=l(:label_total)%>
<%= link_to row.name, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), - :set_filter => 1, - :subproject_id => '!*', - "#{field_name}" => row.id %><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, - :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), - :set_filter => 1, - :subproject_id => '!*', - "#{field_name}" => row.id, - "status_id" => "o" %><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, - :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), - :set_filter => 1, - :subproject_id => '!*', - "#{field_name}" => row.id, - "status_id" => "c" %><%= aggregate_link data, { field_name => row.id }, - :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), - :set_filter => 1, - :subproject_id => '!*', - "#{field_name}" => row.id, - "status_id" => "*" %>
-<% end - reset_cycle %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/reports/issue_report.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/reports/issue_report.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,33 @@ +

<%=l(:label_report_plural)%>

+ +
+

<%=l(:field_tracker)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'tracker' %>

+<%= render :partial => 'simple', :locals => { :data => @issues_by_tracker, :field_name => "tracker_id", :rows => @trackers } %> +
+

<%=l(:field_priority)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'priority' %>

+<%= render :partial => 'simple', :locals => { :data => @issues_by_priority, :field_name => "priority_id", :rows => @priorities } %> +
+

<%=l(:field_assigned_to)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'assigned_to' %>

+<%= render :partial => 'simple', :locals => { :data => @issues_by_assigned_to, :field_name => "assigned_to_id", :rows => @assignees } %> +
+

<%=l(:field_author)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'author' %>

+<%= render :partial => 'simple', :locals => { :data => @issues_by_author, :field_name => "author_id", :rows => @authors } %> +
+<%= call_hook(:view_reports_issue_report_split_content_left, :project => @project) %> +
+ +
+

<%=l(:field_version)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'version' %>

+<%= render :partial => 'simple', :locals => { :data => @issues_by_version, :field_name => "fixed_version_id", :rows => @versions } %> +
+<% if @project.children.any? %> +

<%=l(:field_subproject)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'subproject' %>

+<%= render :partial => 'simple', :locals => { :data => @issues_by_subproject, :field_name => "project_id", :rows => @subprojects } %> +
+<% end %> +

<%=l(:field_category)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'category' %>

+<%= render :partial => 'simple', :locals => { :data => @issues_by_category, :field_name => "category_id", :rows => @categories } %> +
+<%= call_hook(:view_reports_issue_report_split_content_right, :project => @project) %> +
+ diff -r df51e8ff578d -r c6c2cbd0afee app/views/reports/issue_report.rhtml --- a/app/views/reports/issue_report.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -

<%=l(:label_report_plural)%>

- -
-

<%=l(:field_tracker)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'tracker' %>

-<%= render :partial => 'simple', :locals => { :data => @issues_by_tracker, :field_name => "tracker_id", :rows => @trackers } %> -
-

<%=l(:field_priority)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'priority' %>

-<%= render :partial => 'simple', :locals => { :data => @issues_by_priority, :field_name => "priority_id", :rows => @priorities } %> -
-

<%=l(:field_assigned_to)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'assigned_to' %>

-<%= render :partial => 'simple', :locals => { :data => @issues_by_assigned_to, :field_name => "assigned_to_id", :rows => @assignees } %> -
-

<%=l(:field_author)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'author' %>

-<%= render :partial => 'simple', :locals => { :data => @issues_by_author, :field_name => "author_id", :rows => @authors } %> -
-<%= call_hook(:view_reports_issue_report_split_content_left, :project => @project) %> -
- -
-

<%=l(:field_version)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'version' %>

-<%= render :partial => 'simple', :locals => { :data => @issues_by_version, :field_name => "fixed_version_id", :rows => @versions } %> -
-<% if @project.children.any? %> -

<%=l(:field_subproject)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'subproject' %>

-<%= render :partial => 'simple', :locals => { :data => @issues_by_subproject, :field_name => "project_id", :rows => @subprojects } %> -
-<% end %> -

<%=l(:field_category)%>  <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'category' %>

-<%= render :partial => 'simple', :locals => { :data => @issues_by_category, :field_name => "category_id", :rows => @categories } %> -
-<%= call_hook(:view_reports_issue_report_split_content_right, :project => @project) %> -
- diff -r df51e8ff578d -r c6c2cbd0afee app/views/reports/issue_report_details.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/reports/issue_report_details.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,7 @@ +

<%=l(:label_report_plural)%>

+ +

<%=@report_title%>

+<%= render :partial => 'details', :locals => { :data => @data, :field_name => @field, :rows => @rows } %> +
+<%= link_to l(:button_back), :action => 'issue_report' %> + diff -r df51e8ff578d -r c6c2cbd0afee app/views/reports/issue_report_details.rhtml --- a/app/views/reports/issue_report_details.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -

<%=l(:label_report_plural)%>

- -

<%=@report_title%>

-<%= render :partial => 'details', :locals => { :data => @data, :field_name => @field, :rows => @rows } %> -
-<%= link_to l(:button_back), :action => 'issue_report' %> - diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/_breadcrumbs.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/_breadcrumbs.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,28 @@ +<%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %> +<% +dirs = path.split('/') +if 'file' == kind + filename = dirs.pop +end +link_path = '' +dirs.each do |dir| + next if dir.blank? + link_path << '/' unless link_path.empty? + link_path << "#{dir}" + %> + / <%= link_to h(dir), :action => 'show', :id => @project, + :path => to_path_param(link_path), :rev => @rev %> +<% end %> +<% if filename %> + / <%= link_to h(filename), + :action => 'changes', :id => @project, + :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> +<% end %> +<% + # @rev is revsion or Git and Mercurial branch or tag. + # For Mercurial *tip*, @rev and @changeset are nil. + rev_text = @changeset.nil? ? @rev : format_revision(@changeset) +%> +<%= "@ #{h rev_text}" unless rev_text.blank? %> + +<% html_title(with_leading_slash(path)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/_breadcrumbs.rhtml --- a/app/views/repositories/_breadcrumbs.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -<%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %> -<% -dirs = path.split('/') -if 'file' == kind - filename = dirs.pop -end -link_path = '' -dirs.each do |dir| - next if dir.blank? - link_path << '/' unless link_path.empty? - link_path << "#{dir}" - %> - / <%= link_to h(dir), :action => 'show', :id => @project, - :path => to_path_param(link_path), :rev => @rev %> -<% end %> -<% if filename %> - / <%= link_to h(filename), - :action => 'changes', :id => @project, - :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> -<% end %> -<% - # @rev is revsion or Git and Mercurial branch or tag. - # For Mercurial *tip*, @rev and @changeset are nil. - rev_text = @changeset.nil? ? @rev : format_revision(@changeset) -%> -<%= "@ #{h rev_text}" unless rev_text.blank? %> - -<% html_title(with_leading_slash(path)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/_dir_list.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/_dir_list.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,17 @@ + + + + + +<% if @repository.report_last_commit %> + + + + +<% end %> + + + +<%= render :partial => 'dir_list_content' %> + +
<%= l(:field_name) %><%= l(:field_filesize) %><%= l(:label_revision) %><%= l(:label_age) %><%= l(:field_author) %><%= l(:field_comments) %>
diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/_dir_list.rhtml --- a/app/views/repositories/_dir_list.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ - - - - - -<% if @repository.report_last_commit %> - - - - -<% end %> - - - -<%= render :partial => 'dir_list_content' %> - -
<%= l(:field_name) %><%= l(:field_filesize) %><%= l(:label_revision) %><%= l(:label_age) %><%= l(:field_author) %><%= l(:field_comments) %>
diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/_dir_list_content.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/_dir_list_content.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,30 @@ +<% @entries.each do |entry| %> +<% tr_id = Digest::MD5.hexdigest(entry.path) + depth = params[:depth].to_i %> +<% ent_path = Redmine::CodesetUtil.replace_invalid_utf8(entry.path) %> +<% ent_name = Redmine::CodesetUtil.replace_invalid_utf8(entry.name) %> + +";> +<% if entry.is_dir? %> + "scmEntryClick('#{tr_id}')"%>">  +<% end %> +<%= link_to h(ent_name), + {:action => (entry.is_dir? ? 'show' : 'changes'), :id => @project, :path => to_path_param(ent_path), :rev => @rev}, + :class => (entry.is_dir? ? 'icon icon-folder' : "icon icon-file #{Redmine::MimeType.css_class_of(ent_name)}")%> + +<%= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %> +<% changeset = @project.repository.find_changeset_by_name(entry.lastrev.identifier) if entry.lastrev && entry.lastrev.identifier %> +<% if @repository.report_last_commit %> +<%= link_to_revision(changeset, @project) if changeset %> +<%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %> +<%= changeset.nil? ? h(Redmine::CodesetUtil.replace_invalid_utf8(entry.lastrev.author.to_s.split('<').first)) : changeset.author if entry.lastrev %> +<%=h truncate(changeset.comments, :length => 50) unless changeset.nil? %> +<% end %> + +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/_dir_list_content.rhtml --- a/app/views/repositories/_dir_list_content.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -<% @entries.each do |entry| %> -<% tr_id = Digest::MD5.hexdigest(entry.path) - depth = params[:depth].to_i %> -<% ent_path = Redmine::CodesetUtil.replace_invalid_utf8(entry.path) %> -<% ent_name = Redmine::CodesetUtil.replace_invalid_utf8(entry.name) %> - -";> -<% if entry.is_dir? %> - "scmEntryClick('#{tr_id}')"%>">  -<% end %> -<%= link_to h(ent_name), - {:action => (entry.is_dir? ? 'show' : 'changes'), :id => @project, :path => to_path_param(ent_path), :rev => @rev}, - :class => (entry.is_dir? ? 'icon icon-folder' : "icon icon-file #{Redmine::MimeType.css_class_of(ent_name)}")%> - -<%= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %> -<% changeset = @project.repository.find_changeset_by_name(entry.lastrev.identifier) if entry.lastrev && entry.lastrev.identifier %> -<% if @repository.report_last_commit %> -<%= link_to_revision(changeset, @project) if changeset %> -<%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %> -<%= changeset.nil? ? h(Redmine::CodesetUtil.replace_invalid_utf8(entry.lastrev.author.to_s.split('<').first)) : changeset.author if entry.lastrev %> -<%=h truncate(changeset.comments, :length => 50) unless changeset.nil? %> -<% end %> - -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/_link_to_functions.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/_link_to_functions.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,15 @@ +<% if @entry && @entry.kind == 'file' %> + +

+<%= link_to_if action_name != 'changes', l(:label_history), {:action => 'changes', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | +<% if @repository.supports_cat? %> + <%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | +<% end %> +<% if @repository.supports_annotate? %> + <%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | +<% end %> +<%= link_to(l(:button_download), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %> +<%= "(#{number_to_human_size(@entry.size)})" if @entry.size %> +

+ +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/_link_to_functions.rhtml --- a/app/views/repositories/_link_to_functions.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -<% if @entry && @entry.kind == 'file' %> - -

-<%= link_to_if action_name != 'changes', l(:label_history), {:action => 'changes', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | -<% if @repository.supports_cat? %> - <%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | -<% end %> -<% if @repository.supports_annotate? %> - <%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | -<% end %> -<%= link_to(l(:button_download), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %> -<%= "(#{number_to_human_size(@entry.size)})" if @entry.size %> -

- -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/_navigation.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/_navigation.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,21 @@ +<% content_for :header_tags do %> + <%= javascript_include_tag 'repository_navigation' %> +<% end %> + +<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %> + +<% form_tag({:action => controller.action_name, :id => @project, :path => to_path_param(@path), :rev => ''}, {:method => :get, :id => 'revision_selector'}) do -%> + + <% if !@repository.branches.nil? && @repository.branches.length > 0 -%> + | <%= l(:label_branch) %>: + <%= select_tag :branch, options_for_select([''] + @repository.branches,@rev), :id => 'branch' %> + <% end -%> + + <% if !@repository.tags.nil? && @repository.tags.length > 0 -%> + | <%= l(:label_tag) %>: + <%= select_tag :tag, options_for_select([''] + @repository.tags,@rev), :id => 'tag' %> + <% end -%> + + | <%= l(:label_revision) %>: + <%= text_field_tag 'rev', @rev, :size => 8 %> +<% end -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/_navigation.rhtml --- a/app/views/repositories/_navigation.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -<% content_for :header_tags do %> - <%= javascript_include_tag 'repository_navigation' %> -<% end %> - -<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %> - -<% form_tag({:action => controller.action_name, :id => @project, :path => to_path_param(@path), :rev => ''}, {:method => :get, :id => 'revision_selector'}) do -%> - - <% if !@repository.branches.nil? && @repository.branches.length > 0 -%> - | <%= l(:label_branch) %>: - <%= select_tag :branch, options_for_select([''] + @repository.branches,@rev), :id => 'branch' %> - <% end -%> - - <% if !@repository.tags.nil? && @repository.tags.length > 0 -%> - | <%= l(:label_tag) %>: - <%= select_tag :tag, options_for_select([''] + @repository.tags,@rev), :id => 'tag' %> - <% end -%> - - | <%= l(:label_revision) %>: - <%= text_field_tag 'rev', @rev, :size => 8 %> -<% end -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/_revisions.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/_revisions.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,28 @@ +<% form_tag({:controller => 'repositories', :action => 'diff', :id => @project, :path => to_path_param(path)}, :method => :get) do %> + + + + + + + + + + +<% show_diff = revisions.size > 1 %> +<% line_num = 1 %> +<% revisions.each do |changeset| %> + + + + + + + + +<% line_num += 1 %> +<% end %> + +
#<%= l(:label_date) %><%= l(:field_author) %><%= l(:field_comments) %>
<%= link_to_revision(changeset, project) %><%= radio_button_tag('rev', changeset.identifier, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < revisions.size) %><%= radio_button_tag('rev_to', changeset.identifier, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %><%= format_time(changeset.committed_on) %><%=h changeset.author %><%= textilizable(truncate_at_line_break(changeset.comments)) %>
+<%= submit_tag(l(:label_view_diff), :name => nil) if show_diff %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/_revisions.rhtml --- a/app/views/repositories/_revisions.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -<% form_tag({:controller => 'repositories', :action => 'diff', :id => @project, :path => to_path_param(path)}, :method => :get) do %> - - - - - - - - - - -<% show_diff = revisions.size > 1 %> -<% line_num = 1 %> -<% revisions.each do |changeset| %> - - - - - - - - -<% line_num += 1 %> -<% end %> - -
#<%= l(:label_date) %><%= l(:field_author) %><%= l(:field_comments) %>
<%= link_to_revision(changeset, project) %><%= radio_button_tag('rev', changeset.identifier, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < revisions.size) %><%= radio_button_tag('rev_to', changeset.identifier, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %><%= format_time(changeset.committed_on) %><%=h changeset.author %><%= textilizable(truncate_at_line_break(changeset.comments)) %>
-<%= submit_tag(l(:label_view_diff), :name => nil) if show_diff %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/annotate.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/annotate.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,36 @@ +<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> + +
+ <%= render :partial => 'navigation' %> +
+ +

<%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %>

+ +

<%= render :partial => 'link_to_functions' %>

+ +<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %> + +
+ + + <% line_num = 1 %> + <% syntax_highlight(@path, to_utf8(@annotate.content)).each_line do |line| %> + <% revision = @annotate.revisions[line_num-1] %> + + + + + + + <% line_num += 1 %> + <% end %> + +
<%= line_num %> + <%= (revision.identifier ? link_to_revision(revision, @project) : format_revision(revision)) if revision %><%= h(revision.author.to_s.split('<').first) if revision %>
<%= line %>
+
+ +<% html_title(l(:button_annotate)) -%> + +<% content_for :header_tags do %> +<%= stylesheet_link_tag 'scm' %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/annotate.rhtml --- a/app/views/repositories/annotate.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> - -
- <%= render :partial => 'navigation' %> -
- -

<%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %>

- -

<%= render :partial => 'link_to_functions' %>

- -<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %> - -
- - - <% line_num = 1 %> - <% syntax_highlight(@path, to_utf8(@annotate.content)).each_line do |line| %> - <% revision = @annotate.revisions[line_num-1] %> - - - - - - - <% line_num += 1 %> - <% end %> - -
<%= line_num %> - <%= (revision.identifier ? link_to_revision(revision, @project) : format_revision(revision)) if revision %><%= h(revision.author.to_s.split('<').first) if revision %>
<%= line %>
-
- -<% html_title(l(:button_annotate)) -%> - -<% content_for :header_tags do %> -<%= stylesheet_link_tag 'scm' %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/changes.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/changes.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,18 @@ +<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> + +
+ <%= render :partial => 'navigation' %> +
+ +

+ <%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => (@entry ? @entry.kind : nil), :revision => @rev } %> +

+ +

<%= render :partial => 'link_to_functions' %>

+ +<%= render_properties(@properties) %> + +<%= render(:partial => 'revisions', + :locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => @entry }) unless @changesets.empty? %> + +<% html_title(l(:label_change_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/changes.rhtml --- a/app/views/repositories/changes.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> - -
- <%= render :partial => 'navigation' %> -
- -

- <%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => (@entry ? @entry.kind : nil), :revision => @rev } %> -

- -

<%= render :partial => 'link_to_functions' %>

- -<%= render_properties(@properties) %> - -<%= render(:partial => 'revisions', - :locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => @entry }) unless @changesets.empty? %> - -<% html_title(l(:label_change_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/committers.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/committers.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,34 @@ +

<%= l(:label_repository) %>

+ +<%= simple_format(l(:text_repository_usernames_mapping)) %> + +<% if @committers.empty? %> +

<%= l(:label_no_data) %>

+<% else %> + +<% form_tag({}) do %> + + + + + + + + +<% i = 0 -%> +<% @committers.each do |committer, user_id| -%> + + + + + <% i += 1 -%> +<% end -%> + +
<%= l(:field_login) %><%= l(:label_user) %>
<%=h committer %> + <%= hidden_field_tag "committers[#{i}][]", committer %> + <%= select_tag "committers[#{i}][]", content_tag('option', "-- #{l :actionview_instancetag_blank_option} --", :value => '') + options_from_collection_for_select(@users, 'id', 'name', user_id.to_i) %> +
+

<%= submit_tag(l(:button_update)) %>

+<% end %> + +<% end %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/committers.rhtml --- a/app/views/repositories/committers.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -

<%= l(:label_repository) %>

- -<%= simple_format(l(:text_repository_usernames_mapping)) %> - -<% if @committers.empty? %> -

<%= l(:label_no_data) %>

-<% else %> - -<% form_tag({}) do %> - - - - - - - - -<% i = 0 -%> -<% @committers.each do |committer, user_id| -%> - - - - - <% i += 1 -%> -<% end -%> - -
<%= l(:field_login) %><%= l(:label_user) %>
<%=h committer %> - <%= hidden_field_tag "committers[#{i}][]", committer %> - <%= select_tag "committers[#{i}][]", content_tag('option', "-- #{l :actionview_instancetag_blank_option} --", :value => '') + options_from_collection_for_select(@users, 'id', 'name', user_id.to_i) %> -
-

<%= submit_tag(l(:button_update)) %>

-<% end %> - -<% end %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/diff.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/diff.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,23 @@ +

<%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %>

+ + +<% form_tag({:path => to_path_param(@path)}, :method => 'get') do %> + <%= hidden_field_tag('rev', params[:rev]) if params[:rev] %> + <%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %> +

+ <%= select_tag 'type', options_for_select([[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type), :onchange => "if (this.value != '') {this.form.submit()}" %>

+<% end %> + +<% cache(@cache_key) do -%> +<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %> +<% end -%> + +<% other_formats_links do |f| %> + <%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %> +<% end %> + +<% html_title(with_leading_slash(@path), 'Diff') -%> + +<% content_for :header_tags do %> +<%= stylesheet_link_tag "scm" %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/diff.rhtml --- a/app/views/repositories/diff.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -

<%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %>

- - -<% form_tag({:path => to_path_param(@path)}, :method => 'get') do %> - <%= hidden_field_tag('rev', params[:rev]) if params[:rev] %> - <%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %> -

- <%= select_tag 'type', options_for_select([[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type), :onchange => "if (this.value != '') {this.form.submit()}" %>

-<% end %> - -<% cache(@cache_key) do -%> -<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %> -<% end -%> - -<% other_formats_links do |f| %> - <%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %> -<% end %> - -<% html_title(with_leading_slash(@path), 'Diff') -%> - -<% content_for :header_tags do %> -<%= stylesheet_link_tag "scm" %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/entry.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/entry.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,15 @@ +<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> + +
+ <%= render :partial => 'navigation' %> +
+ +

<%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %>

+ +

<%= render :partial => 'link_to_functions' %>

+ +<%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %> + +<% content_for :header_tags do %> +<%= stylesheet_link_tag "scm" %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/entry.rhtml --- a/app/views/repositories/entry.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> - -
- <%= render :partial => 'navigation' %> -
- -

<%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %>

- -

<%= render :partial => 'link_to_functions' %>

- -<%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %> - -<% content_for :header_tags do %> -<%= stylesheet_link_tag "scm" %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/revision.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/revision.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,67 @@ +
+ « + <% unless @changeset.previous.nil? -%> + <%= link_to_revision(@changeset.previous, @project, :text => l(:label_previous)) %> + <% else -%> + <%= l(:label_previous) %> + <% end -%> +| + <% unless @changeset.next.nil? -%> + <%= link_to_revision(@changeset.next, @project, :text => l(:label_next)) %> + <% else -%> + <%= l(:label_next) %> + <% end -%> + »  + + <% form_tag({:controller => 'repositories', + :action => 'revision', + :id => @project, + :rev => nil}, + :method => :get) do %> + <%= text_field_tag 'rev', @rev, :size => 8 %> + <%= submit_tag 'OK', :name => nil %> + <% end %> +
+ +

<%= l(:label_revision) %> <%= format_revision(@changeset) %>

+ +

<% if @changeset.scmid %>ID: <%= @changeset.scmid %>
<% end %> +<%= authoring(@changeset.committed_on, @changeset.author) %>

+ +<%= textilizable @changeset.comments %> + +<% if @changeset.issues.visible.any? %> +

<%= l(:label_related_issues) %>

+ +<% end %> + +<% if User.current.allowed_to?(:browse_repository, @project) %> +

<%= l(:label_attachment_plural) %>

+ + +

<%= link_to(l(:label_view_diff), + :action => 'diff', + :id => @project, + :path => "", + :rev => @changeset.identifier) if @changeset.changes.any? %>

+ +
+<%= render_changeset_changes %> +
+<% end %> + +<% content_for :header_tags do %> +<%= stylesheet_link_tag "scm" %> +<% end %> + +<% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/revision.rhtml --- a/app/views/repositories/revision.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +0,0 @@ -
- « - <% unless @changeset.previous.nil? -%> - <%= link_to_revision(@changeset.previous, @project, :text => l(:label_previous)) %> - <% else -%> - <%= l(:label_previous) %> - <% end -%> -| - <% unless @changeset.next.nil? -%> - <%= link_to_revision(@changeset.next, @project, :text => l(:label_next)) %> - <% else -%> - <%= l(:label_next) %> - <% end -%> - »  - - <% form_tag({:controller => 'repositories', - :action => 'revision', - :id => @project, - :rev => nil}, - :method => :get) do %> - <%= text_field_tag 'rev', @rev, :size => 8 %> - <%= submit_tag 'OK', :name => nil %> - <% end %> -
- -

<%= l(:label_revision) %> <%= format_revision(@changeset) %>

- -

<% if @changeset.scmid %>ID: <%= @changeset.scmid %>
<% end %> -<%= authoring(@changeset.committed_on, @changeset.author) %>

- -<%= textilizable @changeset.comments %> - -<% if @changeset.issues.visible.any? %> -

<%= l(:label_related_issues) %>

- -<% end %> - -<% if User.current.allowed_to?(:browse_repository, @project) %> -

<%= l(:label_attachment_plural) %>

- - -

<%= link_to(l(:label_view_diff), - :action => 'diff', - :id => @project, - :path => "", - :rev => @changeset.identifier) if @changeset.changes.any? %>

- -
-<%= render_changeset_changes %> -
-<% end %> - -<% content_for :header_tags do %> -<%= stylesheet_link_tag "scm" %> -<% end %> - -<% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/revisions.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/revisions.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,30 @@ +
+<% form_tag({:action => 'revision', :id => @project}) do %> +<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 8 %> +<%= submit_tag 'OK' %> +<% end %> +
+ +

<%= l(:label_revision_plural) %>

+ +<%= render :partial => 'revisions', + :locals => {:project => @project, + :path => '', + :revisions => @changesets, + :entry => nil } %> + +

<%= pagination_links_full @changeset_pages,@changeset_count %>

+ +<% content_for :header_tags do %> +<%= stylesheet_link_tag "scm" %> +<%= auto_discovery_link_tag( + :atom, + params.merge( + {:format => 'atom', :page => nil, :key => User.current.rss_key})) %> +<% end %> + +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> +<% end %> + +<% html_title(l(:label_revision_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/revisions.rhtml --- a/app/views/repositories/revisions.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -
-<% form_tag({:action => 'revision', :id => @project}) do %> -<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 8 %> -<%= submit_tag 'OK' %> -<% end %> -
- -

<%= l(:label_revision_plural) %>

- -<%= render :partial => 'revisions', - :locals => {:project => @project, - :path => '', - :revisions => @changesets, - :entry => nil } %> - -

<%= pagination_links_full @changeset_pages,@changeset_count %>

- -<% content_for :header_tags do %> -<%= stylesheet_link_tag "scm" %> -<%= auto_discovery_link_tag( - :atom, - params.merge( - {:format => 'atom', :page => nil, :key => User.current.rss_key})) %> -<% end %> - -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> -<% end %> - -<% html_title(l(:label_revision_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/show.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/show.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,64 @@ +<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> + +
+ <%= render :partial => 'navigation' %> +
+ +

<%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %>

+ +<% if !@entries.nil? && authorize_for('repositories', 'browse') %> +<%= render :partial => 'dir_list' %> +<% end %> + +<%= render_properties(@properties) %> + +<% if authorize_for('repositories', 'revisions') %> +<% if @changesets && !@changesets.empty? %> +

<%= l(:label_latest_revision_plural) %>

+<%= render :partial => 'revisions', + :locals => {:project => @project, :path => @path, + :revisions => @changesets, :entry => nil }%> +<% end %> +

+<% + has_branches = (!@repository.branches.nil? && @repository.branches.length > 0) + sep = '' + %> +<% if @repository.supports_all_revisions? && @path.blank? %> +<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %> +<% sep = '|' %> +<% end %> +<% + if @repository.supports_directory_revisions? && + ( has_branches || !@path.blank? || !@rev.blank? ) + %> +<%= sep %> +<%= + link_to l(:label_view_revisions), + :action => 'changes', + :path => to_path_param(@path), + :id => @project, + :rev => @rev + %> +<% end %> +

+ +<% if true # @path.blank? %> +<% content_for :header_tags do %> + <%= auto_discovery_link_tag( + :atom, params.merge( + {:format => 'atom', :action => 'revisions', + :id => @project, :page => nil, :key => User.current.rss_key})) %> +<% end %> + +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %> +<% end %> +<% end %> +<% end %> + +<% content_for :header_tags do %> +<%= stylesheet_link_tag "scm" %> +<% end %> + +<% html_title(l(:label_repository)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/show.rhtml --- a/app/views/repositories/show.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +0,0 @@ -<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> - -
- <%= render :partial => 'navigation' %> -
- -

<%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %>

- -<% if !@entries.nil? && authorize_for('repositories', 'browse') %> -<%= render :partial => 'dir_list' %> -<% end %> - -<%= render_properties(@properties) %> - -<% if authorize_for('repositories', 'revisions') %> -<% if @changesets && !@changesets.empty? %> -

<%= l(:label_latest_revision_plural) %>

-<%= render :partial => 'revisions', - :locals => {:project => @project, :path => @path, - :revisions => @changesets, :entry => nil }%> -<% end %> -

-<% - has_branches = (!@repository.branches.nil? && @repository.branches.length > 0) - sep = '' - %> -<% if @repository.supports_all_revisions? && @path.blank? %> -<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %> -<% sep = '|' %> -<% end %> -<% - if @repository.supports_directory_revisions? && - ( has_branches || !@path.blank? || !@rev.blank? ) - %> -<%= sep %> -<%= - link_to l(:label_view_revisions), - :action => 'changes', - :path => to_path_param(@path), - :id => @project, - :rev => @rev - %> -<% end %> -

- -<% if true # @path.blank? %> -<% content_for :header_tags do %> - <%= auto_discovery_link_tag( - :atom, params.merge( - {:format => 'atom', :action => 'revisions', - :id => @project, :page => nil, :key => User.current.rss_key})) %> -<% end %> - -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %> -<% end %> -<% end %> -<% end %> - -<% content_for :header_tags do %> -<%= stylesheet_link_tag "scm" %> -<% end %> - -<% html_title(l(:label_repository)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/stats.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/repositories/stats.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,12 @@ +

<%= l(:label_statistics) %>

+ +

+<%= tag("embed", :width => 800, :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_month")) %> +

+

+<%= tag("embed", :width => 800, :height => 400, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_author")) %> +

+ +

<%= link_to l(:button_back), :action => 'show', :id => @project %>

+ +<% html_title(l(:label_repository), l(:label_statistics)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/repositories/stats.rhtml --- a/app/views/repositories/stats.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -

<%= l(:label_statistics) %>

- -

-<%= tag("embed", :width => 800, :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_month")) %> -

-

-<%= tag("embed", :width => 800, :height => 400, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_author")) %> -

- -

<%= link_to l(:button_back), :action => 'show', :id => @project %>

- -<% html_title(l(:label_repository), l(:label_statistics)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/roles/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/roles/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,30 @@ +<%= error_messages_for 'role' %> + +
+<% unless @role.builtin? %> +

<%= f.text_field :name, :required => true %>

+

<%= f.check_box :assignable %>

+<% end %> +

<%= f.select :issues_visibility, Role::ISSUES_VISIBILITY_OPTIONS.collect {|v| [l(v.last), v.first]} %>

+<% if @role.new_record? && @roles.any? %> +

+<%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@roles, :id, :name)) %>

+<% end %> +
+ +

<%= l(:label_permissions) %>

+
+<% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %> +<% perms_by_module.keys.sort.each do |mod| %> +
<%= mod.blank? ? l(:label_project) : l_or_humanize(mod, :prefix => 'project_module_') %> + <% perms_by_module[mod].each do |permission| %> + + <% end %> +
+<% end %> +
<%= check_all_links 'permissions' %> +<%= hidden_field_tag 'role[permissions][]', '' %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/roles/_form.rhtml --- a/app/views/roles/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -<%= error_messages_for 'role' %> - -
-<% unless @role.builtin? %> -

<%= f.text_field :name, :required => true %>

-

<%= f.check_box :assignable %>

-<% end %> -

<%= f.select :issues_visibility, Role::ISSUES_VISIBILITY_OPTIONS.collect {|v| [l(v.last), v.first]} %>

-<% if @role.new_record? && @roles.any? %> -

-<%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@roles, :id, :name)) %>

-<% end %> -
- -

<%= l(:label_permissions) %>

-
-<% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %> -<% perms_by_module.keys.sort.each do |mod| %> -
<%= mod.blank? ? l(:label_project) : l_or_humanize(mod, :prefix => 'project_module_') %> - <% perms_by_module[mod].each do |permission| %> - - <% end %> -
-<% end %> -
<%= check_all_links 'permissions' %> -<%= hidden_field_tag 'role[permissions][]', '' %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/roles/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/roles/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%= link_to l(:label_role_plural), :controller => 'roles', :action => 'index' %> » <%=h @role.name %>

+ +<% labelled_tabular_form_for :role, @role, :url => { :action => 'edit' }, :html => {:id => 'role_form'} do |f| %> +<%= render :partial => 'form', :locals => { :f => f } %> +<%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/roles/edit.rhtml --- a/app/views/roles/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%= link_to l(:label_role_plural), :controller => 'roles', :action => 'index' %> » <%=h @role.name %>

- -<% labelled_tabular_form_for :role, @role, :url => { :action => 'edit' }, :html => {:id => 'role_form'} do |f| %> -<%= render :partial => 'form', :locals => { :f => f } %> -<%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/roles/new.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/roles/new.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,6 @@ +

<%= link_to l(:label_role_plural), :controller => 'roles', :action => 'index' %> » <%=l(:label_role_new)%>

+ +<% labelled_tabular_form_for :role, @role, :url => { :action => 'new' }, :html => {:id => 'role_form'} do |f| %> +<%= render :partial => 'form', :locals => { :f => f } %> +<%= submit_tag l(:button_create) %> +<% end %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/roles/new.rhtml --- a/app/views/roles/new.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -

<%= link_to l(:label_role_plural), :controller => 'roles', :action => 'index' %> » <%=l(:label_role_new)%>

- -<% labelled_tabular_form_for :role, @role, :url => { :action => 'new' }, :html => {:id => 'role_form'} do |f| %> -<%= render :partial => 'form', :locals => { :f => f } %> -<%= submit_tag l(:button_create) %> -<% end %> \ No newline at end of file diff -r df51e8ff578d -r c6c2cbd0afee app/views/roles/report.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/roles/report.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,52 @@ +

<%= link_to l(:label_role_plural), :controller => 'roles', :action => 'index' %> » <%=l(:label_permissions_report)%>

+ +<% form_tag({:action => 'report'}, :id => 'permissions_form') do %> +<%= hidden_field_tag 'permissions[0]', '', :id => nil %> +
+ + + + + <% @roles.each do |role| %> + + <% end %> + + + +<% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %> +<% perms_by_module.keys.sort.each do |mod| %> + <% unless mod.blank? %> + + + + <% end %> + <% perms_by_module[mod].each do |permission| %> + + + <% @roles.each do |role| %> + + <% end %> + + <% end %> +<% end %> + +
<%=l(:label_permissions)%> + <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> + <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.role-#{role.id}')", + :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> +
+   + <%= l_or_humanize(mod, :prefix => 'project_module_') %> +
+ <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('.permission-#{permission.name} input')", + :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> + <%= l_or_humanize(permission.name, :prefix => 'permission_') %> + + <% if role.setable_permissions.include? permission %> + <%= check_box_tag "permissions[#{role.id}][]", permission.name, (role.permissions.include? permission.name), :id => nil, :class => "role-#{role.id}" %> + <% end %> +
+
+

<%= check_all_links 'permissions_form' %>

+

<%= submit_tag l(:button_save) %>

+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/roles/report.rhtml --- a/app/views/roles/report.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -

<%= link_to l(:label_role_plural), :controller => 'roles', :action => 'index' %> » <%=l(:label_permissions_report)%>

- -<% form_tag({:action => 'report'}, :id => 'permissions_form') do %> -<%= hidden_field_tag 'permissions[0]', '', :id => nil %> -
- - - - - <% @roles.each do |role| %> - - <% end %> - - - -<% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %> -<% perms_by_module.keys.sort.each do |mod| %> - <% unless mod.blank? %> - - - - <% end %> - <% perms_by_module[mod].each do |permission| %> - - - <% @roles.each do |role| %> - - <% end %> - - <% end %> -<% end %> - -
<%=l(:label_permissions)%> - <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> - <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.role-#{role.id}')", - :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> -
-   - <%= l_or_humanize(mod, :prefix => 'project_module_') %> -
- <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('.permission-#{permission.name} input')", - :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> - <%= l_or_humanize(permission.name, :prefix => 'permission_') %> - - <% if role.setable_permissions.include? permission %> - <%= check_box_tag "permissions[#{role.id}][]", permission.name, (role.permissions.include? permission.name), :id => nil, :class => "role-#{role.id}" %> - <% end %> -
-
-

<%= check_all_links 'permissions_form' %>

-

<%= submit_tag l(:button_save) %>

-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/search/index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/search/index.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,49 @@ +

<%= l(:label_search) %>

+ +
+<% form_tag({}, :method => :get) do %> +

<%= text_field_tag 'q', @question, :size => 60, :id => 'search-input' %> +<%= javascript_tag "Field.focus('search-input')" %> +<%= project_select_tag %> +<%= hidden_field_tag 'all_words', '', :id => nil %> + +<%= hidden_field_tag 'titles_only', '', :id => nil %> + +

+

+<% @object_types.each do |t| %> + +<% end %> +

+ +

<%= submit_tag l(:button_submit), :name => 'submit' %>

+<% end %> +
+ +<% if @results %> +
+ <%= render_results_by_type(@results_by_type) unless @scope.size == 1 %> +
+ +

<%= l(:label_result_plural) %> (<%= @results_by_type.values.sum %>)

+
+ <% @results.each do |e| %> +
<%= content_tag('span', h(e.project), :class => 'project') unless @project == e.project %> <%= link_to highlight_tokens(truncate(e.event_title, :length => 255), @tokens), e.event_url %>
+
<%= highlight_tokens(e.event_description, @tokens) %> + <%= format_time(e.event_datetime) %>
+ <% end %> +
+<% end %> + +

+<% if @pagination_previous_date %> +<%= link_to_content_update('« ' + l(:label_previous), + params.merge(:previous => 1, :offset => @pagination_previous_date.strftime("%Y%m%d%H%M%S"))) %>  +<% end %> +<% if @pagination_next_date %> +<%= link_to_content_update(l(:label_next) + ' »', + params.merge(:previous => nil, :offset => @pagination_next_date.strftime("%Y%m%d%H%M%S"))) %> +<% end %> +

+ +<% html_title(l(:label_search)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/search/index.rhtml --- a/app/views/search/index.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -

<%= l(:label_search) %>

- -
-<% form_tag({}, :method => :get) do %> -

<%= text_field_tag 'q', @question, :size => 60, :id => 'search-input' %> -<%= javascript_tag "Field.focus('search-input')" %> -<%= project_select_tag %> -<%= hidden_field_tag 'all_words', '', :id => nil %> - -<%= hidden_field_tag 'titles_only', '', :id => nil %> - -

-

-<% @object_types.each do |t| %> - -<% end %> -

- -

<%= submit_tag l(:button_submit), :name => 'submit' %>

-<% end %> -
- -<% if @results %> -
- <%= render_results_by_type(@results_by_type) unless @scope.size == 1 %> -
- -

<%= l(:label_result_plural) %> (<%= @results_by_type.values.sum %>)

-
- <% @results.each do |e| %> -
<%= content_tag('span', h(e.project), :class => 'project') unless @project == e.project %> <%= link_to highlight_tokens(truncate(e.event_title, :length => 255), @tokens), e.event_url %>
-
<%= highlight_tokens(e.event_description, @tokens) %> - <%= format_time(e.event_datetime) %>
- <% end %> -
-<% end %> - -

-<% if @pagination_previous_date %> -<%= link_to_content_update('« ' + l(:label_previous), - params.merge(:previous => 1, :offset => @pagination_previous_date.strftime("%Y%m%d%H%M%S"))) %>  -<% end %> -<% if @pagination_next_date %> -<%= link_to_content_update(l(:label_next) + ' »', - params.merge(:previous => nil, :offset => @pagination_next_date.strftime("%Y%m%d%H%M%S"))) %> -<% end %> -

- -<% html_title(l(:label_search)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_authentication.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/settings/_authentication.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,27 @@ +<% form_tag({:action => 'edit', :tab => 'authentication'}) do %> + +
+

<%= setting_check_box :login_required %>

+ +

<%= setting_select :autologin, [[l(:label_disabled), 0]] + [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]} %>

+ +

<%= setting_select :self_registration, [[l(:label_disabled), "0"], + [l(:label_registration_activation_by_email), "1"], + [l(:label_registration_manual_activation), "2"], + [l(:label_registration_automatic_activation), "3"]] %>

+ +

<%= setting_text_field :password_min_length, :size => 6 %>

+ +

<%= setting_check_box :lost_password, :label => :label_password_lost %>

+ +

<%= setting_check_box :openid, :disabled => !Object.const_defined?(:OpenID) %>

+ +

<%= setting_check_box :rest_api_enabled %>

+
+ +
+ <%= link_to l(:label_ldap_authentication), {:controller => 'ldap_auth_sources', :action => 'index'}, :class => 'icon icon-server-authentication' %> +
+ +<%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_authentication.rhtml --- a/app/views/settings/_authentication.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -<% form_tag({:action => 'edit', :tab => 'authentication'}) do %> - -
-

<%= setting_check_box :login_required %>

- -

<%= setting_select :autologin, [[l(:label_disabled), 0]] + [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]} %>

- -

<%= setting_select :self_registration, [[l(:label_disabled), "0"], - [l(:label_registration_activation_by_email), "1"], - [l(:label_registration_manual_activation), "2"], - [l(:label_registration_automatic_activation), "3"]] %>

- -

<%= setting_text_field :password_min_length, :size => 6 %>

- -

<%= setting_check_box :lost_password, :label => :label_password_lost %>

- -

<%= setting_check_box :openid, :disabled => !Object.const_defined?(:OpenID) %>

- -

<%= setting_check_box :rest_api_enabled %>

-
- -
- <%= link_to l(:label_ldap_authentication), {:controller => 'ldap_auth_sources', :action => 'index'}, :class => 'icon icon-server-authentication' %> -
- -<%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_display.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/settings/_display.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,22 @@ +<% form_tag({:action => 'edit', :tab => 'display'}) do %> + +
+

<%= setting_select :ui_theme, Redmine::Themes.themes.collect {|t| [t.name, t.id]}, :blank => :label_default, :label => :label_theme %>

+ +

<%= setting_select :default_language, lang_options_for_select(false) %>

+ +

<%= setting_select :start_of_week, [[day_name(1),'1'], [day_name(6),'6'], [day_name(7),'7']], :blank => :label_language_based %>

+ +

<%= setting_select :date_format, Setting::DATE_FORMATS.collect {|f| [Date.today.strftime(f), f]}, :blank => :label_language_based %>

+ +

<%= setting_select :time_format, Setting::TIME_FORMATS.collect {|f| [Time.now.strftime(f), f]}, :blank => :label_language_based %>

+ +

<%= setting_select :user_format, @options[:user_format] %>

+ +

<%= setting_check_box :gravatar_enabled %>

+ +

<%= setting_select :gravatar_default, [["Wavatars", 'wavatar'], ["Identicons", 'identicon'], ["Monster ids", 'monsterid'], ["Retro", 'retro'], ["Mystery man", 'mm']], :blank => :label_none %>

+
+ +<%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_display.rhtml --- a/app/views/settings/_display.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -<% form_tag({:action => 'edit', :tab => 'display'}) do %> - -
-

<%= setting_select :ui_theme, Redmine::Themes.themes.collect {|t| [t.name, t.id]}, :blank => :label_default, :label => :label_theme %>

- -

<%= setting_select :default_language, lang_options_for_select(false) %>

- -

<%= setting_select :start_of_week, [[day_name(1),'1'], [day_name(6),'6'], [day_name(7),'7']], :blank => :label_language_based %>

- -

<%= setting_select :date_format, Setting::DATE_FORMATS.collect {|f| [Date.today.strftime(f), f]}, :blank => :label_language_based %>

- -

<%= setting_select :time_format, Setting::TIME_FORMATS.collect {|f| [Time.now.strftime(f), f]}, :blank => :label_language_based %>

- -

<%= setting_select :user_format, @options[:user_format] %>

- -

<%= setting_check_box :gravatar_enabled %>

- -

<%= setting_select :gravatar_default, [["Wavatars", 'wavatar'], ["Identicons", 'identicon'], ["Monster ids", 'monsterid'], ["Retro", 'retro'], ["Mystery man", 'mm']], :blank => :label_none %>

-
- -<%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_general.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/settings/_general.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,37 @@ +<% form_tag({:action => 'edit'}) do %> + +
+

<%= setting_text_field :app_title, :size => 30 %>

+ +

<%= setting_text_area :welcome_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %>

+<%= wikitoolbar_for 'settings_welcome_text' %> + +

<%= setting_text_field :attachment_max_size, :size => 6 %> <%= l(:"number.human.storage_units.units.kb") %>

+ +

<%= setting_text_field :per_page_options, :size => 20 %>
+<%= l(:text_comma_separated) %>

+ +

<%= setting_text_field :activity_days_default, :size => 6 %> <%= l(:label_day_plural) %>

+ +

<%= setting_text_field :host_name, :size => 60 %>
+<%= l(:label_example) %>: <%= @guessed_host_and_path %>

+ +

<%= setting_select :protocol, [['HTTP', 'http'], ['HTTPS', 'https']] %>

+ +

<%= setting_select :text_formatting, Redmine::WikiFormatting.format_names.collect{|name| [name, name.to_s]}, :blank => :label_none %>

+ +

<%= setting_check_box :cache_formatted_text %>

+ +

<%= setting_select :wiki_compression, [['Gzip', 'gzip']], :blank => :label_none %>

+ +

<%= setting_text_field :feeds_limit, :size => 6 %>

+ +

<%= setting_text_field :file_max_size_displayed, :size => 6 %> <%= l(:"number.human.storage_units.units.kb") %>

+ +

<%= setting_text_field :diff_max_lines_displayed, :size => 6 %>

+ +<%= call_hook(:view_settings_general_form) %> +
+ +<%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_general.rhtml --- a/app/views/settings/_general.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -<% form_tag({:action => 'edit'}) do %> - -
-

<%= setting_text_field :app_title, :size => 30 %>

- -

<%= setting_text_area :welcome_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %>

-<%= wikitoolbar_for 'settings_welcome_text' %> - -

<%= setting_text_field :attachment_max_size, :size => 6 %> <%= l(:"number.human.storage_units.units.kb") %>

- -

<%= setting_text_field :per_page_options, :size => 20 %>
-<%= l(:text_comma_separated) %>

- -

<%= setting_text_field :activity_days_default, :size => 6 %> <%= l(:label_day_plural) %>

- -

<%= setting_text_field :host_name, :size => 60 %>
-<%= l(:label_example) %>: <%= @guessed_host_and_path %>

- -

<%= setting_select :protocol, [['HTTP', 'http'], ['HTTPS', 'https']] %>

- -

<%= setting_select :text_formatting, Redmine::WikiFormatting.format_names.collect{|name| [name, name.to_s]}, :blank => :label_none %>

- -

<%= setting_check_box :cache_formatted_text %>

- -

<%= setting_select :wiki_compression, [['Gzip', 'gzip']], :blank => :label_none %>

- -

<%= setting_text_field :feeds_limit, :size => 6 %>

- -

<%= setting_text_field :file_max_size_displayed, :size => 6 %> <%= l(:"number.human.storage_units.units.kb") %>

- -

<%= setting_text_field :diff_max_lines_displayed, :size => 6 %>

- -<%= call_hook(:view_settings_general_form) %> -
- -<%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_issues.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/settings/_issues.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,21 @@ +<% form_tag({:action => 'edit', :tab => 'issues'}) do %> + +
+

<%= setting_check_box :cross_project_issue_relations %>

+ +

<%= setting_check_box :display_subprojects_issues %>

+ +

<%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} %>

+ +

<%= setting_text_field :issues_export_limit, :size => 6 %>

+ +

<%= setting_text_field :gantt_items_limit, :size => 6 %>

+
+ +
<%= l(:setting_issue_list_default_columns) %> +<%= setting_multiselect(:issue_list_default_columns, + Query.new.available_columns.collect {|c| [c.caption, c.name.to_s]}, :label => false) %> +
+ +<%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_issues.rhtml --- a/app/views/settings/_issues.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -<% form_tag({:action => 'edit', :tab => 'issues'}) do %> - -
-

<%= setting_check_box :cross_project_issue_relations %>

- -

<%= setting_check_box :display_subprojects_issues %>

- -

<%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} %>

- -

<%= setting_text_field :issues_export_limit, :size => 6 %>

- -

<%= setting_text_field :gantt_items_limit, :size => 6 %>

-
- -
<%= l(:setting_issue_list_default_columns) %> -<%= setting_multiselect(:issue_list_default_columns, - Query.new.available_columns.collect {|c| [c.caption, c.name.to_s]}, :label => false) %> -
- -<%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_mail_handler.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/settings/_mail_handler.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,23 @@ +<% form_tag({:action => 'edit', :tab => 'mail_handler'}) do %> + +
+

+ <%= setting_text_area :mail_handler_body_delimiters, :rows => 5 %> +
<%= l(:text_line_separated) %> +

+
+ +
+

<%= setting_check_box :mail_handler_api_enabled, + :onclick => "if (this.checked) { Form.Element.enable('settings_mail_handler_api_key'); } else { Form.Element.disable('settings_mail_handler_api_key'); }"%>

+ +

<%= setting_text_field :mail_handler_api_key, :size => 30, + :id => 'settings_mail_handler_api_key', + :disabled => !Setting.mail_handler_api_enabled? %> + <%= link_to_function l(:label_generate_key), "if ($('settings_mail_handler_api_key').disabled == false) { $('settings_mail_handler_api_key').value = randomKey(20) }" %> +

+
+ +<%= submit_tag l(:button_save) %> + +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_mail_handler.rhtml --- a/app/views/settings/_mail_handler.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -<% form_tag({:action => 'edit', :tab => 'mail_handler'}) do %> - -
-

- <%= setting_text_area :mail_handler_body_delimiters, :rows => 5 %> -
<%= l(:text_line_separated) %> -

-
- -
-

<%= setting_check_box :mail_handler_api_enabled, - :onclick => "if (this.checked) { Form.Element.enable('settings_mail_handler_api_key'); } else { Form.Element.disable('settings_mail_handler_api_key'); }"%>

- -

<%= setting_text_field :mail_handler_api_key, :size => 30, - :id => 'settings_mail_handler_api_key', - :disabled => !Setting.mail_handler_api_enabled? %> - <%= link_to_function l(:label_generate_key), "if ($('settings_mail_handler_api_key').disabled == false) { $('settings_mail_handler_api_key').value = randomKey(20) }" %> -

-
- -<%= submit_tag l(:button_save) %> - -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_notifications.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/settings/_notifications.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,42 @@ +<% if @deliveries %> +<% form_tag({:action => 'edit', :tab => 'notifications'}) do %> + +
+

<%= setting_text_field :mail_from, :size => 60 %>

+ +

<%= setting_check_box :bcc_recipients %>

+ +

<%= setting_check_box :plain_text_mail %>

+ +

<%= setting_select(:default_notification_option, User.valid_notification_options.collect {|o| [l(o.last), o.first.to_s]}) %>

+ +
+ +
<%=l(:text_select_mail_notifications)%> +<%= hidden_field_tag 'settings[notified_events][]', '' %> +<% @notifiables.each do |notifiable| %> +<%= notification_field notifiable %> +
+<% end %> +

<%= check_all_links('notified_events') %>

+
+ +
<%= l(:setting_emails_header) %> +<%= setting_text_area :emails_header, :label => false, :class => 'wiki-edit', :rows => 5 %> +
+ +
<%= l(:setting_emails_footer) %> +<%= setting_text_area :emails_footer, :label => false, :class => 'wiki-edit', :rows => 5 %> +
+ +
+<%= link_to l(:label_send_test_email), :controller => 'admin', :action => 'test_email' %> +
+ +<%= submit_tag l(:button_save) %> +<% end %> +<% else %> +
+<%= simple_format(l(:text_email_delivery_not_configured)) %> +
+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_notifications.rhtml --- a/app/views/settings/_notifications.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +0,0 @@ -<% if @deliveries %> -<% form_tag({:action => 'edit', :tab => 'notifications'}) do %> - -
-

<%= setting_text_field :mail_from, :size => 60 %>

- -

<%= setting_check_box :bcc_recipients %>

- -

<%= setting_check_box :plain_text_mail %>

- -

<%= setting_select(:default_notification_option, User.valid_notification_options.collect {|o| [l(o.last), o.first.to_s]}) %>

- -
- -
<%=l(:text_select_mail_notifications)%> -<%= hidden_field_tag 'settings[notified_events][]', '' %> -<% @notifiables.each do |notifiable| %> -<%= notification_field notifiable %> -
-<% end %> -

<%= check_all_links('notified_events') %>

-
- -
<%= l(:setting_emails_header) %> -<%= setting_text_area :emails_header, :label => false, :class => 'wiki-edit', :rows => 5 %> -
- -
<%= l(:setting_emails_footer) %> -<%= setting_text_area :emails_footer, :label => false, :class => 'wiki-edit', :rows => 5 %> -
- -
-<%= link_to l(:label_send_test_email), :controller => 'admin', :action => 'test_email' %> -
- -<%= submit_tag l(:button_save) %> -<% end %> -<% else %> -
-<%= simple_format(l(:text_email_delivery_not_configured)) %> -
-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_projects.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/settings/_projects.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,17 @@ +<% form_tag({:action => 'edit', :tab => 'projects'}) do %> + +
+

<%= setting_check_box :default_projects_public %>

+ +

<%= setting_multiselect(:default_projects_modules, + Redmine::AccessControl.available_project_modules.collect {|m| [l_or_humanize(m, :prefix => "project_module_"), m.to_s]}) %>

+ +

<%= setting_check_box :sequential_project_identifiers %>

+ +

<%= setting_select :new_project_user_role_id, + Role.find_all_givable.collect {|r| [r.name, r.id.to_s]}, + :blank => "--- #{l(:actionview_instancetag_blank_option)} ---" %>

+
+ +<%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_projects.rhtml --- a/app/views/settings/_projects.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -<% form_tag({:action => 'edit', :tab => 'projects'}) do %> - -
-

<%= setting_check_box :default_projects_public %>

- -

<%= setting_multiselect(:default_projects_modules, - Redmine::AccessControl.available_project_modules.collect {|m| [l_or_humanize(m, :prefix => "project_module_"), m.to_s]}) %>

- -

<%= setting_check_box :sequential_project_identifiers %>

- -

<%= setting_select :new_project_user_role_id, - Role.find_all_givable.collect {|r| [r.name, r.id.to_s]}, - :blank => "--- #{l(:actionview_instancetag_blank_option)} ---" %>

-
- -<%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_repositories.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/settings/_repositories.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,96 @@ +<% form_tag({:action => 'edit', :tab => 'repositories'}) do %> + +
+<%= l(:setting_enabled_scm) %> + + + + + + + <% Redmine::Scm::Base.all.collect do |choice| %> + <% scm_class = "Repository::#{choice}".constantize %> + <% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %> + <% setting = :enabled_scm %> + + + + + + <% end %> +
<%= l(:text_scm_command) %><%= l(:text_scm_command_version) %>
+ <%= + check_box_tag( + "settings[#{setting}][]", + value, + Setting.send(setting).include?(value)) + %> + <%= text.to_s %> + + <%= + image_tag( + (scm_class.scm_available ? 'true.png' : 'exclamation.png'), + :style => "vertical-align:bottom;" + ) + %> + <%= scm_class.scm_command %> + + <%= scm_class.scm_version_string %> +
+

+<%= l(:text_scm_config) %> +

+
+ +
+

<%= setting_check_box :autofetch_changesets %>

+ +

<%= setting_check_box :sys_api_enabled, + :onclick => + "if (this.checked) { Form.Element.enable('settings_sys_api_key'); } else { Form.Element.disable('settings_sys_api_key'); }" %>

+ +

<%= setting_text_field :sys_api_key, + :size => 30, + :id => 'settings_sys_api_key', + :disabled => !Setting.sys_api_enabled?, + :label => :setting_mail_handler_api_key %> + <%= link_to_function l(:label_generate_key), + "if ($('settings_sys_api_key').disabled == false) { $('settings_sys_api_key').value = randomKey(20) }" %> +

+ +

<%= setting_text_field :repositories_encodings, :size => 60 %>
+<%= l(:text_comma_separated) %>

+ +

<%= setting_text_field :repository_log_display_limit, :size => 6 %>

+
+ +
+<%= l(:text_issues_ref_in_commit_messages) %> +

<%= setting_text_field :commit_ref_keywords, :size => 30 %>
+<%= l(:text_comma_separated) %>

+ +

<%= setting_text_field :commit_fix_keywords, :size => 30 %> + <%= l(:label_applied_status) %>: <%= setting_select :commit_fix_status_id, + [["", 0]] + + IssueStatus.find(:all).collect{ + |status| [status.name, status.id.to_s] + }, + :label => false %> + <%= l(:field_done_ratio) %>: <%= setting_select :commit_fix_done_ratio, + (0..10).to_a.collect {|r| ["#{r*10} %", "#{r*10}"] }, + :blank => :label_no_change_option, + :label => false %> +
<%= l(:text_comma_separated) %>

+ +

<%= setting_check_box :commit_logtime_enabled, + :onclick => + "if (this.checked) { Form.Element.enable('settings_commit_logtime_activity_id'); } else { Form.Element.disable('settings_commit_logtime_activity_id'); }"%>

+ +

<%= setting_select :commit_logtime_activity_id, + [[l(:label_default), 0]] + + TimeEntryActivity.shared.all.collect{|activity| [activity.name, activity.id.to_s]}, + :disabled => !Setting.commit_logtime_enabled?%>

+
+ +<%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/_repositories.rhtml --- a/app/views/settings/_repositories.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,96 +0,0 @@ -<% form_tag({:action => 'edit', :tab => 'repositories'}) do %> - -
-<%= l(:setting_enabled_scm) %> - - - - - - - <% Redmine::Scm::Base.all.collect do |choice| %> - <% scm_class = "Repository::#{choice}".constantize %> - <% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %> - <% setting = :enabled_scm %> - - - - - - <% end %> -
<%= l(:text_scm_command) %><%= l(:text_scm_command_version) %>
- <%= - check_box_tag( - "settings[#{setting}][]", - value, - Setting.send(setting).include?(value)) - %> - <%= text.to_s %> - - <%= - image_tag( - (scm_class.scm_available ? 'true.png' : 'exclamation.png'), - :style => "vertical-align:bottom;" - ) - %> - <%= scm_class.scm_command %> - - <%= scm_class.scm_version_string %> -
-

-<%= l(:text_scm_config) %> -

-
- -
-

<%= setting_check_box :autofetch_changesets %>

- -

<%= setting_check_box :sys_api_enabled, - :onclick => - "if (this.checked) { Form.Element.enable('settings_sys_api_key'); } else { Form.Element.disable('settings_sys_api_key'); }" %>

- -

<%= setting_text_field :sys_api_key, - :size => 30, - :id => 'settings_sys_api_key', - :disabled => !Setting.sys_api_enabled?, - :label => :setting_mail_handler_api_key %> - <%= link_to_function l(:label_generate_key), - "if ($('settings_sys_api_key').disabled == false) { $('settings_sys_api_key').value = randomKey(20) }" %> -

- -

<%= setting_text_field :repositories_encodings, :size => 60 %>
-<%= l(:text_comma_separated) %>

- -

<%= setting_text_field :repository_log_display_limit, :size => 6 %>

-
- -
-<%= l(:text_issues_ref_in_commit_messages) %> -

<%= setting_text_field :commit_ref_keywords, :size => 30 %>
-<%= l(:text_comma_separated) %>

- -

<%= setting_text_field :commit_fix_keywords, :size => 30 %> - <%= l(:label_applied_status) %>: <%= setting_select :commit_fix_status_id, - [["", 0]] + - IssueStatus.find(:all).collect{ - |status| [status.name, status.id.to_s] - }, - :label => false %> - <%= l(:field_done_ratio) %>: <%= setting_select :commit_fix_done_ratio, - (0..10).to_a.collect {|r| ["#{r*10} %", "#{r*10}"] }, - :blank => :label_no_change_option, - :label => false %> -
<%= l(:text_comma_separated) %>

- -

<%= setting_check_box :commit_logtime_enabled, - :onclick => - "if (this.checked) { Form.Element.enable('settings_commit_logtime_activity_id'); } else { Form.Element.disable('settings_commit_logtime_activity_id'); }"%>

- -

<%= setting_select :commit_logtime_activity_id, - [[l(:label_default), 0]] + - TimeEntryActivity.shared.all.collect{|activity| [activity.name, activity.id.to_s]}, - :disabled => !Setting.commit_logtime_enabled?%>

-
- -<%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/settings/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,5 @@ +

<%= l(:label_settings) %>

+ +<%= render_tabs administration_settings_tabs %> + +<% html_title(l(:label_settings), l(:label_administration)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/edit.rhtml --- a/app/views/settings/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -

<%= l(:label_settings) %>

- -<%= render_tabs administration_settings_tabs %> - -<% html_title(l(:label_settings), l(:label_administration)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/plugin.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/settings/plugin.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,10 @@ +

<%= l(:label_settings) %>: <%=h @plugin.name %>

+ +
+<% form_tag({:action => 'plugin'}) do %> +
+<%= render :partial => @partial, :locals => {:settings => @settings}%> +
+<%= submit_tag l(:button_apply) %> +<% end %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/settings/plugin.rhtml --- a/app/views/settings/plugin.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -

<%= l(:label_settings) %>: <%=h @plugin.name %>

- -
-<% form_tag({:action => 'plugin'}) do %> -
-<%= render :partial => @partial, :locals => {:settings => @settings}%> -
-<%= submit_tag l(:button_apply) %> -<% end %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/time_entry_reports/_report_criteria.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/time_entry_reports/_report_criteria.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,19 @@ +<% @hours.collect {|h| h[criterias[level]].to_s}.uniq.each do |value| %> +<% hours_for_value = select_hours(hours, criterias[level], value) -%> +<% next if hours_for_value.empty? -%> + +<%= '' * level %> +<%= h(format_criteria_value(criterias[level], value)) %> +<%= '' * (criterias.length - level - 1) -%> + <% total = 0 -%> + <% @periods.each do |period| -%> + <% sum = sum_hours(select_hours(hours_for_value, @columns, period.to_s)); total += sum -%> + <%= html_hours("%.2f" % sum) if sum > 0 %> + <% end -%> + <%= html_hours("%.2f" % total) if total > 0 %> + +<% if criterias.length > level+1 -%> + <%= render(:partial => 'report_criteria', :locals => {:criterias => criterias, :hours => hours_for_value, :level => (level + 1)}) %> +<% end -%> + +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/time_entry_reports/_report_criteria.rhtml --- a/app/views/time_entry_reports/_report_criteria.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -<% @hours.collect {|h| h[criterias[level]].to_s}.uniq.each do |value| %> -<% hours_for_value = select_hours(hours, criterias[level], value) -%> -<% next if hours_for_value.empty? -%> - -<%= '' * level %> -<%= h(format_criteria_value(criterias[level], value)) %> -<%= '' * (criterias.length - level - 1) -%> - <% total = 0 -%> - <% @periods.each do |period| -%> - <% sum = sum_hours(select_hours(hours_for_value, @columns, period.to_s)); total += sum -%> - <%= html_hours("%.2f" % sum) if sum > 0 %> - <% end -%> - <%= html_hours("%.2f" % total) if total > 0 %> - -<% if criterias.length > level+1 -%> - <%= render(:partial => 'report_criteria', :locals => {:criterias => criterias, :hours => hours_for_value, :level => (level + 1)}) %> -<% end -%> - -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/time_entry_reports/report.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/time_entry_reports/report.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,70 @@ +
+<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'new', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time-add' %> +
+ +<%= render_timelog_breadcrumb %> + +

<%= l(:label_spent_time) %>

+ +<% form_tag({:controller => 'time_entry_reports', :action => 'report', :project_id => @project, :issue_id => @issue}, :method => :get, :id => 'query_form') do %> + <% @criterias.each do |criteria| %> + <%= hidden_field_tag 'criterias[]', criteria, :id => nil %> + <% end %> + <%= render :partial => 'timelog/date_range' %> + +

<%= l(:label_details) %>: <%= select_tag 'columns', options_for_select([[l(:label_year), 'year'], + [l(:label_month), 'month'], + [l(:label_week), 'week'], + [l(:label_day_plural).titleize, 'day']], @columns), + :onchange => "this.form.onsubmit();" %> + + <%= l(:button_add) %>: <%= select_tag('criterias[]', options_for_select([[]] + (@available_criterias.keys - @criterias).collect{|k| [l_or_humanize(@available_criterias[k][:label]), k]}), + :onchange => "this.form.submit();", + :style => 'width: 200px', + :id => nil, + :disabled => (@criterias.length >= 3)) %> + <%= link_to l(:button_clear), {:project_id => @project, :issue_id => @issue, :period_type => params[:period_type], :period => params[:period], :from => @from, :to => @to, :columns => @columns}, :class => 'icon icon-reload' %>

+<% end %> + +<% unless @criterias.empty? %> +
+

<%= l(:label_total) %>: <%= html_hours(l_hours(@total_hours)) %>

+
+ +<% unless @hours.empty? %> + + + +<% @criterias.each do |criteria| %> + +<% end %> +<% columns_width = (40 / (@periods.length+1)).to_i %> +<% @periods.each do |period| %> + +<% end %> + + + + +<%= render :partial => 'report_criteria', :locals => {:criterias => @criterias, :hours => @hours, :level => 0} %> + + + <%= '' * (@criterias.size - 1) %> + <% total = 0 -%> + <% @periods.each do |period| -%> + <% sum = sum_hours(select_hours(@hours, @columns, period.to_s)); total += sum -%> + + <% end -%> + + + +
<%= l_or_humanize(@available_criterias[criteria][:label]) %><%= period %><%= l(:label_total) %>
<%= l(:label_total) %><%= html_hours("%.2f" % sum) if sum > 0 %><%= html_hours("%.2f" % total) if total > 0 %>
+ +<% other_formats_links do |f| %> + <%= f.link_to 'CSV', :url => params %> +<% end %> +<% end %> +<% end %> + +<% html_title l(:label_spent_time), l(:label_report) %> + diff -r df51e8ff578d -r c6c2cbd0afee app/views/time_entry_reports/report.rhtml --- a/app/views/time_entry_reports/report.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +0,0 @@ -
-<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'new', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time-add' %> -
- -<%= render_timelog_breadcrumb %> - -

<%= l(:label_spent_time) %>

- -<% form_tag({:controller => 'time_entry_reports', :action => 'report', :project_id => @project, :issue_id => @issue}, :method => :get, :id => 'query_form') do %> - <% @criterias.each do |criteria| %> - <%= hidden_field_tag 'criterias[]', criteria, :id => nil %> - <% end %> - <%= render :partial => 'timelog/date_range' %> - -

<%= l(:label_details) %>: <%= select_tag 'columns', options_for_select([[l(:label_year), 'year'], - [l(:label_month), 'month'], - [l(:label_week), 'week'], - [l(:label_day_plural).titleize, 'day']], @columns), - :onchange => "this.form.onsubmit();" %> - - <%= l(:button_add) %>: <%= select_tag('criterias[]', options_for_select([[]] + (@available_criterias.keys - @criterias).collect{|k| [l_or_humanize(@available_criterias[k][:label]), k]}), - :onchange => "this.form.submit();", - :style => 'width: 200px', - :id => nil, - :disabled => (@criterias.length >= 3)) %> - <%= link_to l(:button_clear), {:project_id => @project, :issue_id => @issue, :period_type => params[:period_type], :period => params[:period], :from => @from, :to => @to, :columns => @columns}, :class => 'icon icon-reload' %>

-<% end %> - -<% unless @criterias.empty? %> -
-

<%= l(:label_total) %>: <%= html_hours(l_hours(@total_hours)) %>

-
- -<% unless @hours.empty? %> - - - -<% @criterias.each do |criteria| %> - -<% end %> -<% columns_width = (40 / (@periods.length+1)).to_i %> -<% @periods.each do |period| %> - -<% end %> - - - - -<%= render :partial => 'report_criteria', :locals => {:criterias => @criterias, :hours => @hours, :level => 0} %> - - - <%= '' * (@criterias.size - 1) %> - <% total = 0 -%> - <% @periods.each do |period| -%> - <% sum = sum_hours(select_hours(@hours, @columns, period.to_s)); total += sum -%> - - <% end -%> - - - -
<%= l_or_humanize(@available_criterias[criteria][:label]) %><%= period %><%= l(:label_total) %>
<%= l(:label_total) %><%= html_hours("%.2f" % sum) if sum > 0 %><%= html_hours("%.2f" % total) if total > 0 %>
- -<% other_formats_links do |f| %> - <%= f.link_to 'CSV', :url => params %> -<% end %> -<% end %> -<% end %> - -<% html_title l(:label_spent_time), l(:label_report) %> - diff -r df51e8ff578d -r c6c2cbd0afee app/views/timelog/_date_range.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/timelog/_date_range.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,33 @@ +
+<%= l(:label_date_range) %> +
+

+<%= radio_button_tag 'period_type', '1', !@free_period, :onclick => 'Form.Element.disable("from");Form.Element.disable("to");Form.Element.enable("period");' %> +<%= select_tag 'period', options_for_period_select(params[:period]), + :onchange => 'this.form.submit();', + :onfocus => '$("period_type_1").checked = true;', + :disabled => @free_period %> +

+

+<%= radio_button_tag 'period_type', '2', @free_period, :onclick => 'Form.Element.enable("from");Form.Element.enable("to");Form.Element.disable("period");' %> + +<%= l(:label_date_from_to, :start => (text_field_tag('from', @from, :size => 10, :disabled => !@free_period) + calendar_for('from')), + :end => (text_field_tag('to', @to, :size => 10, :disabled => !@free_period) + calendar_for('to'))) %> + +

+
+
+

+ <%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %> + <%= link_to l(:button_clear), {:controller => controller_name, :action => action_name, :project_id => @project, :issue_id => @issue}, :class => 'icon icon-reload' %> +

+ +
+<% url_params = @free_period ? { :from => @from, :to => @to } : { :period => params[:period] } %> + +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/timelog/_date_range.rhtml --- a/app/views/timelog/_date_range.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -
-<%= l(:label_date_range) %> -
-

-<%= radio_button_tag 'period_type', '1', !@free_period, :onclick => 'Form.Element.disable("from");Form.Element.disable("to");Form.Element.enable("period");' %> -<%= select_tag 'period', options_for_period_select(params[:period]), - :onchange => 'this.form.submit();', - :onfocus => '$("period_type_1").checked = true;', - :disabled => @free_period %> -

-

-<%= radio_button_tag 'period_type', '2', @free_period, :onclick => 'Form.Element.enable("from");Form.Element.enable("to");Form.Element.disable("period");' %> - -<%= l(:label_date_from_to, :start => (text_field_tag('from', @from, :size => 10, :disabled => !@free_period) + calendar_for('from')), - :end => (text_field_tag('to', @to, :size => 10, :disabled => !@free_period) + calendar_for('to'))) %> - -

-
-
-

- <%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %> - <%= link_to l(:button_clear), {:controller => controller_name, :action => action_name, :project_id => @project, :issue_id => @issue}, :class => 'icon icon-reload' %> -

- -
-<% url_params = @free_period ? { :from => @from, :to => @to } : { :period => params[:period] } %> - -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/timelog/_list.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/timelog/_list.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,53 @@ +<% form_tag({}) do -%> +<%= hidden_field_tag 'back_url', url_for(params) %> + + + + +<%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %> +<%= sort_header_tag('user', :caption => l(:label_member)) %> +<%= sort_header_tag('activity', :caption => l(:label_activity)) %> +<%= sort_header_tag('project', :caption => l(:label_project)) %> +<%= sort_header_tag('issue', :caption => l(:label_issue), :default_order => 'desc') %> + +<%= sort_header_tag('hours', :caption => l(:field_hours)) %> + + + + +<% entries.each do |entry| -%> + hascontextmenu"> + + + + + + + + + + +<% end -%> + +
+ <%= link_to image_tag('toggle_check.png'), + {}, + :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;', + :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> +<%= l(:field_comments) %>
<%= check_box_tag("ids[]", entry.id, false, :id => nil) %><%= format_date(entry.spent_on) %><%=h entry.user %><%=h entry.activity %><%=h entry.project %> +<% if entry.issue -%> +<%= entry.issue.visible? ? link_to_issue(entry.issue, :truncate => 50) : "##{entry.issue.id}" -%> +<% end -%> +<%=h entry.comments %><%= html_hours("%.2f" % entry.hours) %> +<% if entry.editable_by?(User.current) -%> + <%= link_to image_tag('edit.png'), {:controller => 'timelog', :action => 'edit', :id => entry, :project_id => nil}, + :title => l(:button_edit) %> + <%= link_to image_tag('delete.png'), {:controller => 'timelog', :action => 'destroy', :id => entry, :project_id => nil}, + :confirm => l(:text_are_you_sure), + :method => :delete, + :title => l(:button_delete) %> +<% end -%> +
+<% end -%> + +<%= context_menu time_entries_context_menu_path %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/timelog/_list.rhtml --- a/app/views/timelog/_list.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +0,0 @@ -<% form_tag({}) do -%> -<%= hidden_field_tag 'back_url', url_for(params) %> - - - - -<%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %> -<%= sort_header_tag('user', :caption => l(:label_member)) %> -<%= sort_header_tag('activity', :caption => l(:label_activity)) %> -<%= sort_header_tag('project', :caption => l(:label_project)) %> -<%= sort_header_tag('issue', :caption => l(:label_issue), :default_order => 'desc') %> - -<%= sort_header_tag('hours', :caption => l(:field_hours)) %> - - - - -<% entries.each do |entry| -%> - hascontextmenu"> - - - - - - - - - - -<% end -%> - -
- <%= link_to image_tag('toggle_check.png'), - {}, - :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;', - :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> -<%= l(:field_comments) %>
<%= check_box_tag("ids[]", entry.id, false, :id => nil) %><%= format_date(entry.spent_on) %><%=h entry.user %><%=h entry.activity %><%=h entry.project %> -<% if entry.issue -%> -<%= entry.issue.visible? ? link_to_issue(entry.issue, :truncate => 50) : "##{entry.issue.id}" -%> -<% end -%> -<%=h entry.comments %><%= html_hours("%.2f" % entry.hours) %> -<% if entry.editable_by?(User.current) -%> - <%= link_to image_tag('edit.png'), {:controller => 'timelog', :action => 'edit', :id => entry, :project_id => nil}, - :title => l(:button_edit) %> - <%= link_to image_tag('delete.png'), {:controller => 'timelog', :action => 'destroy', :id => entry, :project_id => nil}, - :confirm => l(:text_are_you_sure), - :method => :delete, - :title => l(:button_delete) %> -<% end -%> -
-<% end -%> - -<%= context_menu time_entries_context_menu_path %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/timelog/bulk_edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/timelog/bulk_edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,49 @@ +

<%= l(:label_bulk_edit_selected_time_entries) %>

+ + + +<% form_tag(:action => 'bulk_update') do %> +<%= @time_entries.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> +
+
+ <%= l(:label_change_properties) %> +
+

+ + <%= text_field :time_entry, :issue_id, :size => 6 %> +

+ +

+ + <%= text_field :time_entry, :spent_on, :size => 10 %><%= calendar_for('time_entry_spent_on') %> +

+ +

+ + <%= text_field :time_entry, :hours, :size => 6 %> +

+ + <% if @available_activities.any? %> +

+ + <%= select_tag('time_entry[activity_id]', "" + options_from_collection_for_select(@available_activities, :id, :name)) %> +

+ <% end %> + +

+ + <%= text_field(:time_entry, :comments, :size => 100) %> +

+ + <% @custom_fields.each do |custom_field| %> +

<%= custom_field_tag_for_bulk_edit('time_entry', custom_field, @projects) %>

+ <% end %> + + <%= call_hook(:view_time_entries_bulk_edit_details_bottom, { :time_entries => @time_entries }) %> +
+ +
+
+ +

<%= submit_tag l(:button_submit) %>

+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/timelog/bulk_edit.rhtml --- a/app/views/timelog/bulk_edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -

<%= l(:label_bulk_edit_selected_time_entries) %>

- - - -<% form_tag(:action => 'bulk_update') do %> -<%= @time_entries.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> -
-
- <%= l(:label_change_properties) %> -
-

- - <%= text_field :time_entry, :issue_id, :size => 6 %> -

- -

- - <%= text_field :time_entry, :spent_on, :size => 10 %><%= calendar_for('time_entry_spent_on') %> -

- -

- - <%= text_field :time_entry, :hours, :size => 6 %> -

- - <% if @available_activities.any? %> -

- - <%= select_tag('time_entry[activity_id]', "" + options_from_collection_for_select(@available_activities, :id, :name)) %> -

- <% end %> - -

- - <%= text_field(:time_entry, :comments, :size => 100) %> -

- - <% @custom_fields.each do |custom_field| %> -

<%= custom_field_tag_for_bulk_edit('time_entry', custom_field, @projects) %>

- <% end %> - - <%= call_hook(:view_time_entries_bulk_edit_details_bottom, { :time_entries => @time_entries }) %> -
- -
-
- -

<%= submit_tag l(:button_submit) %>

-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/timelog/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/timelog/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,26 @@ +

<%= l(:label_spent_time) %>

+ +<% labelled_tabular_form_for(:time_entry, @time_entry, :url => { + :action => (@time_entry.new_record? ? 'create' : 'update'), + :id => @time_entry, + :project_id => @time_entry.project + }, + :html => {:method => @time_entry.new_record? ? :post : :put}) do |f| %> +<%= error_messages_for 'time_entry' %> +<%= back_url_hidden_field_tag %> + +
+

<%= f.text_field :issue_id, :size => 6 %> <%= h("#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}") if @time_entry.issue %>

+

<%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %>

+

<%= f.text_field :hours, :size => 6, :required => true %>

+

<%= f.text_field :comments, :size => 100 %>

+

<%= f.select :activity_id, activity_collection_for_select_options(@time_entry), :required => true %>

+<% @time_entry.custom_field_values.each do |value| %> +

<%= custom_field_tag_with_label :time_entry, value %>

+<% end %> +<%= call_hook(:view_timelog_edit_form_bottom, { :time_entry => @time_entry, :form => f }) %> +
+ +<%= submit_tag l(:button_save) %> + +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/timelog/edit.rhtml --- a/app/views/timelog/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -

<%= l(:label_spent_time) %>

- -<% labelled_tabular_form_for(:time_entry, @time_entry, :url => { - :action => (@time_entry.new_record? ? 'create' : 'update'), - :id => @time_entry, - :project_id => @time_entry.project - }, - :html => {:method => @time_entry.new_record? ? :post : :put}) do |f| %> -<%= error_messages_for 'time_entry' %> -<%= back_url_hidden_field_tag %> - -
-

<%= f.text_field :issue_id, :size => 6 %> <%= h("#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}") if @time_entry.issue %>

-

<%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %>

-

<%= f.text_field :hours, :size => 6, :required => true %>

-

<%= f.text_field :comments, :size => 100 %>

-

<%= f.select :activity_id, activity_collection_for_select_options(@time_entry), :required => true %>

-<% @time_entry.custom_field_values.each do |value| %> -

<%= custom_field_tag_with_label :time_entry, value %>

-<% end %> -<%= call_hook(:view_timelog_edit_form_bottom, { :time_entry => @time_entry, :form => f }) %> -
- -<%= submit_tag l(:button_save) %> - -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/trackers/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/trackers/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,41 @@ +<%= error_messages_for 'tracker' %> + +
+
+ +

<%= f.text_field :name, :required => true %>

+

<%= f.check_box :is_in_roadmap %>

+ +<% if IssueCustomField.all.any? %> +

+ + <% IssueCustomField.all.each do |field| %> + + <% end %> +

+<%= hidden_field_tag 'tracker[custom_field_ids][]', '' %> +<% end %> + +<% if @tracker.new_record? && @trackers.any? %> +

+<%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@trackers, :id, :name)) %>

+<% end %> + +
+<%= submit_tag l(@tracker.new_record? ? :button_create : :button_save) %> +
+ +
+<% if @projects.any? %> +
<%= l(:label_project_plural) %> +<%= project_nested_ul(@projects) do |p| + content_tag('label', check_box_tag('tracker[project_ids][]', p.id, @tracker.projects.include?(p), :id => nil) + ' ' + h(p)) +end %> +<%= hidden_field_tag('tracker[project_ids][]', '', :id => nil) %> +

<%= check_all_links 'tracker_project_ids' %>

+
+<% end %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/trackers/_form.rhtml --- a/app/views/trackers/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -<%= error_messages_for 'tracker' %> - -
-
- -

<%= f.text_field :name, :required => true %>

-

<%= f.check_box :is_in_roadmap %>

- -<% if IssueCustomField.all.any? %> -

- - <% IssueCustomField.all.each do |field| %> - - <% end %> -

-<%= hidden_field_tag 'tracker[custom_field_ids][]', '' %> -<% end %> - -<% if @tracker.new_record? && @trackers.any? %> -

-<%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@trackers, :id, :name)) %>

-<% end %> - -
-<%= submit_tag l(@tracker.new_record? ? :button_create : :button_save) %> -
- -
-<% if @projects.any? %> -
<%= l(:label_project_plural) %> -<%= project_nested_ul(@projects) do |p| - content_tag('label', check_box_tag('tracker[project_ids][]', p.id, @tracker.projects.include?(p), :id => nil) + ' ' + h(p)) -end %> -<%= hidden_field_tag('tracker[project_ids][]', '', :id => nil) %> -

<%= check_all_links 'tracker_project_ids' %>

-
-<% end %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/trackers/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/trackers/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,5 @@ +

<%= link_to l(:label_tracker_plural), :controller => 'trackers', :action => 'index' %> » <%=h @tracker %>

+ +<% form_for :tracker, @tracker, :url => { :action => 'edit' }, :builder => TabularFormBuilder do |f| %> +<%= render :partial => 'form', :locals => { :f => f } %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/trackers/edit.rhtml --- a/app/views/trackers/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -

<%= link_to l(:label_tracker_plural), :controller => 'trackers', :action => 'index' %> » <%=h @tracker %>

- -<% form_for :tracker, @tracker, :url => { :action => 'edit' }, :builder => TabularFormBuilder do |f| %> -<%= render :partial => 'form', :locals => { :f => f } %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/trackers/new.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/trackers/new.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,5 @@ +

<%= link_to l(:label_tracker_plural), :controller => 'trackers', :action => 'index' %> » <%=l(:label_tracker_new)%>

+ +<% form_for :tracker, @tracker, :url => { :action => 'new' }, :builder => TabularFormBuilder do |f| %> +<%= render :partial => 'form', :locals => { :f => f } %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/trackers/new.rhtml --- a/app/views/trackers/new.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -

<%= link_to l(:label_tracker_plural), :controller => 'trackers', :action => 'index' %> » <%=l(:label_tracker_new)%>

- -<% form_for :tracker, @tracker, :url => { :action => 'new' }, :builder => TabularFormBuilder do |f| %> -<%= render :partial => 'form', :locals => { :f => f } %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/users/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,51 @@ +<%= error_messages_for 'user' %> + +
+ +
+

<%=l(:label_information_plural)%>

+
+

<%= f.text_field :login, :required => true, :size => 25 %>

+

<%= f.text_field :firstname, :required => true %>

+

<%= f.text_field :lastname, :required => true %>

+

<%= f.text_field :mail, :required => true %>

+

<%= f.select :language, lang_options_for_select %>

+<% if Setting.openid? %> +

<%= f.text_field :identity_url %>

+<% end %> + +<% @user.custom_field_values.each do |value| %> +

<%= custom_field_tag_with_label :user, value %>

+<% end %> + +

<%= f.check_box :admin, :disabled => (@user == User.current) %>

+<%= call_hook(:view_users_form, :user => @user, :form => f) %> +
+ +

<%=l(:label_authentication)%>

+
+<% unless @auth_sources.empty? %> +

<%= f.select :auth_source_id, ([[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }), {}, :onchange => "if (this.value=='') {Element.show('password_fields');} else {Element.hide('password_fields');}" %>

+<% end %> +
+

<%= f.password_field :password, :required => true, :size => 25 %>
+<%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

+

<%= f.password_field :password_confirmation, :required => true, :size => 25 %>

+
+
+
+ +
+

<%=l(:field_mail_notification)%>

+
+<%= render :partial => 'users/mail_notifications' %> +
+ +

<%=l(:label_preferences)%>

+
+<%= render :partial => 'users/preferences' %> +
+
+
+
+ diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/_form.rhtml --- a/app/views/users/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -<%= error_messages_for 'user' %> - -
- -
-

<%=l(:label_information_plural)%>

-
-

<%= f.text_field :login, :required => true, :size => 25 %>

-

<%= f.text_field :firstname, :required => true %>

-

<%= f.text_field :lastname, :required => true %>

-

<%= f.text_field :mail, :required => true %>

-

<%= f.select :language, lang_options_for_select %>

-<% if Setting.openid? %> -

<%= f.text_field :identity_url %>

-<% end %> - -<% @user.custom_field_values.each do |value| %> -

<%= custom_field_tag_with_label :user, value %>

-<% end %> - -

<%= f.check_box :admin, :disabled => (@user == User.current) %>

-<%= call_hook(:view_users_form, :user => @user, :form => f) %> -
- -

<%=l(:label_authentication)%>

-
-<% unless @auth_sources.empty? %> -

<%= f.select :auth_source_id, ([[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }), {}, :onchange => "if (this.value=='') {Element.show('password_fields');} else {Element.hide('password_fields');}" %>

-<% end %> -
-

<%= f.password_field :password, :required => true, :size => 25 %>
-<%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

-

<%= f.password_field :password_confirmation, :required => true, :size => 25 %>

-
-
-
- -
-

<%=l(:field_mail_notification)%>

-
-<%= render :partial => 'users/mail_notifications' %> -
- -

<%=l(:label_preferences)%>

-
-<%= render :partial => 'users/preferences' %> -
-
-
-
- diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/_general.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/users/_general.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,7 @@ +<% labelled_tabular_form_for :user, @user, :url => { :controller => 'users', :action => "update", :tab => nil }, :html => { :method => :put, :class => nil } do |f| %> + <%= render :partial => 'form', :locals => { :f => f } %> + <% if @user.active? -%> +

+ <% end -%> +

<%= submit_tag l(:button_save) %>

+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/_general.rhtml --- a/app/views/users/_general.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -<% labelled_tabular_form_for :user, @user, :url => { :controller => 'users', :action => "update", :tab => nil }, :html => { :method => :put, :class => nil } do |f| %> - <%= render :partial => 'form', :locals => { :f => f } %> - <% if @user.active? -%> -

- <% end -%> -

<%= submit_tag l(:button_save) %>

-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/_groups.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/users/_groups.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,9 @@ +<% form_for(:user, :url => { :action => 'update' }, :html => {:method => :put}) do %> +
+<% Group.all.sort.each do |group| %> +
+<% end %> +<%= hidden_field_tag 'user[group_ids][]', '' %> +
+<%= submit_tag l(:button_save) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/_groups.rhtml --- a/app/views/users/_groups.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -<% form_for(:user, :url => { :action => 'update' }, :html => {:method => :put}) do %> -
-<% Group.all.sort.each do |group| %> -
-<% end %> -<%= hidden_field_tag 'user[group_ids][]', '' %> -
-<%= submit_tag l(:button_save) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/_memberships.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/users/_memberships.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,62 @@ +<% roles = Role.find_all_givable %> +<% projects = Project.active.find(:all, :order => 'lft') %> + +
+<% if @user.memberships.any? %> + + + + + + <%= call_hook(:view_users_memberships_table_header, :user => @user )%> + + + <% @user.memberships.each do |membership| %> + <% next if membership.new_record? %> + + + + + <%= call_hook(:view_users_memberships_table_row, :user => @user, :membership => membership, :roles => roles, :projects => projects )%> + + <% end; reset_cycle %> + +
<%= l(:label_project) %><%= l(:label_role_plural) %>
+ <%= link_to_project membership.project %> + + <%=h membership.roles.sort.collect(&:to_s).join(', ') %> + <% remote_form_for(:membership, :url => { :action => 'edit_membership', :id => @user, :membership_id => membership }, + :html => { :id => "member-#{membership.id}-roles-form", :style => 'display:none;'}) do %> +

<% roles.each do |role| %> +
+ <% end %>

+ <%= hidden_field_tag 'membership[role_ids][]', '' %> +

<%= submit_tag l(:button_change) %> + <%= link_to_function l(:button_cancel), "$('member-#{membership.id}-roles').show(); $('member-#{membership.id}-roles-form').hide(); return false;" %>

+ <% end %> +
+ <%= link_to_function l(:button_edit), "$('member-#{membership.id}-roles').hide(); $('member-#{membership.id}-roles-form').show(); return false;", :class => 'icon icon-edit' %> + <%= link_to_remote(l(:button_delete), { :url => { :controller => 'users', :action => 'destroy_membership', :id => @user, :membership_id => membership }, + :method => :post }, + :class => 'icon icon-del') if membership.deletable? %> +
+<% else %> +

<%= l(:label_no_data) %>

+<% end %> +
+ +
+<% if projects.any? %> +
<%=l(:label_project_new)%> +<% remote_form_for(:membership, :url => { :action => 'edit_membership', :id => @user }) do %> +<%= select_tag 'membership[project_id]', options_for_membership_project_select(@user, projects) %> +

<%= l(:label_role_plural) %>: +<% roles.each do |role| %> + +<% end %>

+

<%= submit_tag l(:button_add) %>

+<% end %> +
+<% end %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/_memberships.rhtml --- a/app/views/users/_memberships.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -<% roles = Role.find_all_givable %> -<% projects = Project.active.find(:all, :order => 'lft') %> - -
-<% if @user.memberships.any? %> - - - - - - <%= call_hook(:view_users_memberships_table_header, :user => @user )%> - - - <% @user.memberships.each do |membership| %> - <% next if membership.new_record? %> - - - - - <%= call_hook(:view_users_memberships_table_row, :user => @user, :membership => membership, :roles => roles, :projects => projects )%> - - <% end; reset_cycle %> - -
<%= l(:label_project) %><%= l(:label_role_plural) %>
- <%= link_to_project membership.project %> - - <%=h membership.roles.sort.collect(&:to_s).join(', ') %> - <% remote_form_for(:membership, :url => { :action => 'edit_membership', :id => @user, :membership_id => membership }, - :html => { :id => "member-#{membership.id}-roles-form", :style => 'display:none;'}) do %> -

<% roles.each do |role| %> -
- <% end %>

- <%= hidden_field_tag 'membership[role_ids][]', '' %> -

<%= submit_tag l(:button_change) %> - <%= link_to_function l(:button_cancel), "$('member-#{membership.id}-roles').show(); $('member-#{membership.id}-roles-form').hide(); return false;" %>

- <% end %> -
- <%= link_to_function l(:button_edit), "$('member-#{membership.id}-roles').hide(); $('member-#{membership.id}-roles-form').show(); return false;", :class => 'icon icon-edit' %> - <%= link_to_remote(l(:button_delete), { :url => { :controller => 'users', :action => 'destroy_membership', :id => @user, :membership_id => membership }, - :method => :post }, - :class => 'icon icon-del') if membership.deletable? %> -
-<% else %> -

<%= l(:label_no_data) %>

-<% end %> -
- -
-<% if projects.any? %> -
<%=l(:label_project_new)%> -<% remote_form_for(:membership, :url => { :action => 'edit_membership', :id => @user }) do %> -<%= select_tag 'membership[project_id]', options_for_membership_project_select(@user, projects) %> -

<%= l(:label_role_plural) %>: -<% roles.each do |role| %> - -<% end %>

-

<%= submit_tag l(:button_add) %>

-<% end %> -
-<% end %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/users/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,11 @@ +
+<%= link_to l(:label_profile), user_path(@user), :class => 'icon icon-user' %> +<%= change_status_link(@user) %> +<%= link_to(l(:button_delete), @user, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del') if User.current != @user %> +
+ +

<%= link_to l(:label_user_plural), :controller => 'users', :action => 'index' %> » <%=h @user.login %>

+ +<%= render_tabs user_settings_tabs %> + +<% html_title(l(:label_user), @user.login, l(:label_administration)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/edit.rhtml --- a/app/views/users/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -
-<%= link_to l(:label_profile), user_path(@user), :class => 'icon icon-user' %> -<%= change_status_link(@user) %> -<%= link_to(l(:button_delete), @user, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del') if User.current != @user %> -
- -

<%= link_to l(:label_user_plural), :controller => 'users', :action => 'index' %> » <%=h @user.login %>

- -<%= render_tabs user_settings_tabs %> - -<% html_title(l(:label_user), @user.login, l(:label_administration)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/users/index.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,58 @@ +
+<%= link_to l(:label_user_new), {:action => 'new'}, :class => 'icon icon-add' %> +
+ +

<%=l(:label_user_plural)%>

+ +<% form_tag({}, :method => :get) do %> +
<%= l(:label_filter_plural) %> + +<%= select_tag 'status', users_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> + +<% if @groups.present? %> + +<%= select_tag 'group_id', '' + options_from_collection_for_select(@groups, :id, :name, params[:group_id].to_i), :onchange => "this.form.submit(); return false;" %> +<% end %> + + +<%= text_field_tag 'name', params[:name], :size => 30 %> +<%= submit_tag l(:button_apply), :class => "small", :name => nil %> +<%= link_to l(:button_clear), users_path, :class => 'icon icon-reload' %> +
+<% end %> +  + +
+ + + <%= sort_header_tag('login', :caption => l(:field_login)) %> + <%= sort_header_tag('firstname', :caption => l(:field_firstname)) %> + <%= sort_header_tag('lastname', :caption => l(:field_lastname)) %> + <%= sort_header_tag('mail', :caption => l(:field_mail)) %> + <%= sort_header_tag('admin', :caption => l(:field_admin), :default_order => 'desc') %> + <%= sort_header_tag('created_on', :caption => l(:field_created_on), :default_order => 'desc') %> + <%= sort_header_tag('last_login_on', :caption => l(:field_last_login_on), :default_order => 'desc') %> + + + +<% for user in @users -%> + <%= %w(anon active registered locked)[user.status] %>"> + + + + + + + + + +<% end -%> + +
<%= avatar(user, :size => "14") %><%= link_to h(user.login), edit_user_path(user) %><%= h(user.firstname) %><%= h(user.lastname) %><%= checked_image user.admin? %><%= format_time(user.created_on) %> + <%= change_status_link(user) %> + <%= link_to(l(:button_delete), user, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del') unless User.current == user %> +
+
+

<%= pagination_links_full @user_pages, @user_count %>

+ +<% html_title(l(:label_user_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/index.rhtml --- a/app/views/users/index.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -
-<%= link_to l(:label_user_new), {:action => 'new'}, :class => 'icon icon-add' %> -
- -

<%=l(:label_user_plural)%>

- -<% form_tag({}, :method => :get) do %> -
<%= l(:label_filter_plural) %> - -<%= select_tag 'status', users_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> - -<% if @groups.present? %> - -<%= select_tag 'group_id', '' + options_from_collection_for_select(@groups, :id, :name, params[:group_id].to_i), :onchange => "this.form.submit(); return false;" %> -<% end %> - - -<%= text_field_tag 'name', params[:name], :size => 30 %> -<%= submit_tag l(:button_apply), :class => "small", :name => nil %> -<%= link_to l(:button_clear), users_path, :class => 'icon icon-reload' %> -
-<% end %> -  - -
- - - <%= sort_header_tag('login', :caption => l(:field_login)) %> - <%= sort_header_tag('firstname', :caption => l(:field_firstname)) %> - <%= sort_header_tag('lastname', :caption => l(:field_lastname)) %> - <%= sort_header_tag('mail', :caption => l(:field_mail)) %> - <%= sort_header_tag('admin', :caption => l(:field_admin), :default_order => 'desc') %> - <%= sort_header_tag('created_on', :caption => l(:field_created_on), :default_order => 'desc') %> - <%= sort_header_tag('last_login_on', :caption => l(:field_last_login_on), :default_order => 'desc') %> - - - -<% for user in @users -%> - <%= %w(anon active registered locked)[user.status] %>"> - - - - - - - - - -<% end -%> - -
<%= avatar(user, :size => "14") %><%= link_to h(user.login), edit_user_path(user) %><%= h(user.firstname) %><%= h(user.lastname) %><%= checked_image user.admin? %><%= format_time(user.created_on) %> - <%= change_status_link(user) %> - <%= link_to(l(:button_delete), user, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del') unless User.current == user %> -
-
-

<%= pagination_links_full @user_pages, @user_count %>

- -<% html_title(l(:label_user_plural)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/show.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/users/show.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,70 @@ +
+<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %> +
+ +

<%= avatar @user, :size => "50" %> <%=h @user.name %>

+ +
+ + +<% unless @memberships.empty? %> +

<%=l(:label_project_plural)%>

+ +<% end %> +<%= call_hook :view_account_left_bottom, :user => @user %> +
+ +
+ +<% unless @events_by_day.empty? %> +

<%= link_to l(:label_activity), :controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %>

+ +

+<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %> +

+ +
+<% @events_by_day.keys.sort.reverse.each do |day| %> +

<%= format_activity_day(day) %>

+
+<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%> +
+ <%= format_time(e.event_datetime, false) %> + <%= content_tag('span', h(e.project), :class => 'project') %> + <%= link_to format_activity_title(e.event_title), e.event_url %>
+
<%= format_activity_description(e.event_description) %>
+<% end -%> +
+<% end -%> +
+ +<% 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 %> +
+ +<% html_title @user.name %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/users/show.rhtml --- a/app/views/users/show.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +0,0 @@ -
-<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %> -
- -

<%= avatar @user, :size => "50" %> <%=h @user.name %>

- -
- - -<% unless @memberships.empty? %> -

<%=l(:label_project_plural)%>

- -<% end %> -<%= call_hook :view_account_left_bottom, :user => @user %> -
- -
- -<% unless @events_by_day.empty? %> -

<%= link_to l(:label_activity), :controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %>

- -

-<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %> -

- -
-<% @events_by_day.keys.sort.reverse.each do |day| %> -

<%= format_activity_day(day) %>

-
-<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%> -
- <%= format_time(e.event_datetime, false) %> - <%= content_tag('span', h(e.project), :class => 'project') %> - <%= link_to format_activity_title(e.event_title), e.event_url %>
-
<%= format_activity_description(e.event_description) %>
-<% end -%> -
-<% end -%> -
- -<% 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 %> -
- -<% html_title @user.name %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/versions/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/versions/_form.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,15 @@ +<%= error_messages_for 'version' %> + +
+

<%= f.text_field :name, :size => 60, :required => true %>

+

<%= f.text_field :description, :size => 60 %>

+

<%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]} %>

+

<%= f.text_field :wiki_page_title, :label => :label_wiki_page, :size => 60, :disabled => @project.wiki.nil? %>

+

<%= f.text_field :effective_date, :size => 10 %><%= calendar_for('version_effective_date') %>

+

<%= f.select :sharing, @version.allowed_sharings.collect {|v| [format_version_sharing(v), v]} %>

+ +<% @version.custom_field_values.each do |value| %> +

<%= custom_field_tag_with_label :version, value %>

+<% end %> + +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/versions/_form.rhtml --- a/app/views/versions/_form.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -<%= error_messages_for 'version' %> - -
-

<%= f.text_field :name, :size => 60, :required => true %>

-

<%= f.text_field :description, :size => 60 %>

-

<%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]} %>

-

<%= f.text_field :wiki_page_title, :label => :label_wiki_page, :size => 60, :disabled => @project.wiki.nil? %>

-

<%= f.text_field :effective_date, :size => 10 %><%= calendar_for('version_effective_date') %>

-

<%= f.select :sharing, @version.allowed_sharings.collect {|v| [format_version_sharing(v), v]} %>

- -<% @version.custom_field_values.each do |value| %> -

<%= custom_field_tag_with_label :version, value %>

-<% end %> - -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/versions/_issue_counts.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/versions/_issue_counts.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,35 @@ +
+
+ +<%= l(:label_issues_by, + select_tag('status_by', + status_by_options_for_select(criteria), + :id => 'status_by_select', + :onchange => remote_function(:url => status_by_project_version_path(version.project, version), + :with => "Form.serialize('status_by_form')"))) %> + +<% if counts.empty? %> +

<%= l(:label_no_data) %>

+<% else %> + + <% counts.each do |count| %> + + + + + <% end %> +
+ <%= link_to count[:group], {:controller => 'issues', + :action => 'index', + :project_id => version.project, + :set_filter => 1, + :status_id => '*', + :fixed_version_id => version}.merge("#{criteria}_id".to_sym => count[:group]) %> + + <%= progress_bar((count[:closed].to_f / count[:total])*100, + :legend => "#{count[:closed]}/#{count[:total]}", + :width => "#{(count[:total].to_f / max * 200).floor}px;") %> +
+<% end %> +
+
diff -r df51e8ff578d -r c6c2cbd0afee app/views/versions/_issue_counts.rhtml --- a/app/views/versions/_issue_counts.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -
-
- -<%= l(:label_issues_by, - select_tag('status_by', - status_by_options_for_select(criteria), - :id => 'status_by_select', - :onchange => remote_function(:url => status_by_project_version_path(version.project, version), - :with => "Form.serialize('status_by_form')"))) %> - -<% if counts.empty? %> -

<%= l(:label_no_data) %>

-<% else %> - - <% counts.each do |count| %> - - - - - <% end %> -
- <%= link_to count[:group], {:controller => 'issues', - :action => 'index', - :project_id => version.project, - :set_filter => 1, - :status_id => '*', - :fixed_version_id => version}.merge("#{criteria}_id".to_sym => count[:group]) %> - - <%= progress_bar((count[:closed].to_f / count[:total])*100, - :legend => "#{count[:closed]}/#{count[:total]}", - :width => "#{(count[:total].to_f / max * 200).floor}px;") %> -
-<% end %> -
-
diff -r df51e8ff578d -r c6c2cbd0afee app/views/versions/_overview.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/versions/_overview.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,27 @@ +<% if version.completed? %> +

<%= format_date(version.effective_date) %>

+<% elsif version.effective_date %> +

<%= due_date_distance_in_words(version.effective_date) %> (<%= format_date(version.effective_date) %>)

+<% end %> + +

<%=h version.description %>

+ + +<% if version.fixed_issues.count > 0 %> + <%= progress_bar([version.closed_pourcent, version.completed_pourcent], :width => '40em', :legend => ('%0.0f%' % version.completed_pourcent)) %> +

+ <%= link_to_if(version.closed_issues_count > 0, l(:label_x_closed_issues_abbr, :count => version.closed_issues_count), :controller => 'issues', :action => 'index', :project_id => version.project, :status_id => 'c', :fixed_version_id => version, :set_filter => 1) %> + (<%= '%0.0f' % (version.closed_issues_count.to_f / version.fixed_issues.count * 100) %>%) +   + <%= link_to_if(version.open_issues_count > 0, l(:label_x_open_issues_abbr, :count => version.open_issues_count), :controller => 'issues', :action => 'index', :project_id => version.project, :status_id => 'o', :fixed_version_id => version, :set_filter => 1) %> + (<%= '%0.0f' % (version.open_issues_count.to_f / version.fixed_issues.count * 100) %>%) +

+<% else %> +

<%= l(:label_roadmap_no_issues) %>

+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/versions/_overview.rhtml --- a/app/views/versions/_overview.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -<% if version.completed? %> -

<%= format_date(version.effective_date) %>

-<% elsif version.effective_date %> -

<%= due_date_distance_in_words(version.effective_date) %> (<%= format_date(version.effective_date) %>)

-<% end %> - -

<%=h version.description %>

- - -<% if version.fixed_issues.count > 0 %> - <%= progress_bar([version.closed_pourcent, version.completed_pourcent], :width => '40em', :legend => ('%0.0f%' % version.completed_pourcent)) %> -

- <%= link_to_if(version.closed_issues_count > 0, l(:label_x_closed_issues_abbr, :count => version.closed_issues_count), :controller => 'issues', :action => 'index', :project_id => version.project, :status_id => 'c', :fixed_version_id => version, :set_filter => 1) %> - (<%= '%0.0f' % (version.closed_issues_count.to_f / version.fixed_issues.count * 100) %>%) -   - <%= link_to_if(version.open_issues_count > 0, l(:label_x_open_issues_abbr, :count => version.open_issues_count), :controller => 'issues', :action => 'index', :project_id => version.project, :status_id => 'o', :fixed_version_id => version, :set_filter => 1) %> - (<%= '%0.0f' % (version.open_issues_count.to_f / version.fixed_issues.count * 100) %>%) -

-<% else %> -

<%= l(:label_roadmap_no_issues) %>

-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/versions/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/versions/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,7 @@ +

<%=l(:label_version)%>

+ +<% labelled_tabular_form_for :version, @version, :url => project_version_path(@project, @version), :html => {:method => :put} do |f| %> +<%= render :partial => 'form', :locals => { :f => f } %> +<%= submit_tag l(:button_save) %> +<% end %> + diff -r df51e8ff578d -r c6c2cbd0afee app/views/versions/edit.rhtml --- a/app/views/versions/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -

<%=l(:label_version)%>

- -<% labelled_tabular_form_for :version, @version, :url => project_version_path(@project, @version), :html => {:method => :put} do |f| %> -<%= render :partial => 'form', :locals => { :f => f } %> -<%= submit_tag l(:button_save) %> -<% end %> - diff -r df51e8ff578d -r c6c2cbd0afee app/views/versions/show.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/versions/show.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,54 @@ +
+<%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => @version}, :class => 'icon icon-edit' %> +<%= link_to_if_authorized(l(:button_edit_associated_wikipage, :page_title => @version.wiki_page_title), {:controller => 'wiki', :action => 'edit', :project_id => @version.project, :id => Wiki.titleize(@version.wiki_page_title)}, :class => 'icon icon-edit') unless @version.wiki_page_title.blank? || @version.project.wiki.nil? %> +<%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %> +
+ +

<%= h(@version.name) %>

+ +
+<%= render :partial => 'versions/overview', :locals => {:version => @version} %> +<%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %> + +
+<% if @version.estimated_hours > 0 || User.current.allowed_to?(:view_time_entries, @project) %> +
<%= l(:label_time_tracking) %> + + + + + +<% if User.current.allowed_to?(:view_time_entries, @project) %> + + + + +<% end %> +
<%= l(:field_estimated_hours) %><%= html_hours(l_hours(@version.estimated_hours)) %>
<%= l(:label_spent_time) %><%= html_hours(l_hours(@version.spent_hours)) %>
+
+<% end %> + +
+<%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues.count > 0 %> +
+
+ +<% if @issues.present? %> +<% form_tag({}) do -%> + + + <%- @issues.each do |issue| -%> + + + + + <% end %> + +<% end %> +<%= context_menu issues_context_menu_path %> +<% end %> +
+ +<%= call_hook :view_versions_show_bottom, :version => @version %> + +<% html_title @version.name %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/versions/show.rhtml --- a/app/views/versions/show.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -
-<%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => @version}, :class => 'icon icon-edit' %> -<%= link_to_if_authorized(l(:button_edit_associated_wikipage, :page_title => @version.wiki_page_title), {:controller => 'wiki', :action => 'edit', :project_id => @version.project, :id => Wiki.titleize(@version.wiki_page_title)}, :class => 'icon icon-edit') unless @version.wiki_page_title.blank? || @version.project.wiki.nil? %> -<%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %> -
- -

<%= h(@version.name) %>

- -
-<%= render :partial => 'versions/overview', :locals => {:version => @version} %> -<%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %> - -
-<% if @version.estimated_hours > 0 || User.current.allowed_to?(:view_time_entries, @project) %> -
<%= l(:label_time_tracking) %> - - - - - -<% if User.current.allowed_to?(:view_time_entries, @project) %> - - - - -<% end %> -
<%= l(:field_estimated_hours) %><%= html_hours(l_hours(@version.estimated_hours)) %>
<%= l(:label_spent_time) %><%= html_hours(l_hours(@version.spent_hours)) %>
-
-<% end %> - -
-<%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues.count > 0 %> -
-
- -<% if @issues.present? %> -<% form_tag({}) do -%> - - - <%- @issues.each do |issue| -%> - - - - - <% end %> - -<% end %> -<%= context_menu issues_context_menu_path %> -<% end %> -
- -<%= call_hook :view_versions_show_bottom, :version => @version %> - -<% html_title @version.name %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/watchers/_watchers.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/watchers/_watchers.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,26 @@ +
+<%= link_to_remote l(:button_add), + :url => {:controller => 'watchers', + :action => 'new', + :object_type => watched.class.name.underscore, + :object_id => watched} if User.current.allowed_to?(:add_issue_watchers, @project) %> +
+ +

<%= l(:label_issue_watchers) %> (<%= watched.watcher_users.size %>)

+ +<% unless @watcher.nil? %> + <% remote_form_for(:watcher, @watcher, + :url => {:controller => 'watchers', + :action => 'new', + :object_type => watched.class.name.underscore, + :object_id => watched}, + :method => :post, + :html => {:id => 'new-watcher-form'}) do |f| %> +

<%= f.select :user_id, (watched.addable_watcher_users.collect {|m| [m.name, m.id]}), :prompt => "--- #{l(:actionview_instancetag_blank_option)} ---" %> + + <%= submit_tag l(:button_add) %> + <%= toggle_link l(:button_cancel), 'new-watcher-form'%>

+ <% end %> +<% end %> + +<%= watchers_list(watched) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/watchers/_watchers.rhtml --- a/app/views/watchers/_watchers.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -
-<%= link_to_remote l(:button_add), - :url => {:controller => 'watchers', - :action => 'new', - :object_type => watched.class.name.underscore, - :object_id => watched} if User.current.allowed_to?(:add_issue_watchers, @project) %> -
- -

<%= l(:label_issue_watchers) %> (<%= watched.watcher_users.size %>)

- -<% unless @watcher.nil? %> - <% remote_form_for(:watcher, @watcher, - :url => {:controller => 'watchers', - :action => 'new', - :object_type => watched.class.name.underscore, - :object_id => watched}, - :method => :post, - :html => {:id => 'new-watcher-form'}) do |f| %> -

<%= f.select :user_id, (watched.addable_watcher_users.collect {|m| [m.name, m.id]}), :prompt => "--- #{l(:actionview_instancetag_blank_option)} ---" %> - - <%= submit_tag l(:button_add) %> - <%= toggle_link l(:button_cancel), 'new-watcher-form'%>

- <% end %> -<% end %> - -<%= watchers_list(watched) %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/welcome/index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/welcome/index.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,40 @@ +

<%= l(:label_home) %>

+ +
+ <%= textilizable Setting.welcome_text %> + <% if @news.any? %> +
+

<%=l(:label_news_latest)%>

+ <%= render :partial => 'news/news', :collection => @news %> + <%= link_to l(:label_news_view_all), :controller => 'news' %> +
+ <% end %> + <%= call_hook(:view_welcome_index_left, :projects => @projects) %> +
+ +
+ <% if @projects.any? %> +
+

<%=l(:label_project_latest)%>

+ +
+ <% end %> + <%= call_hook(:view_welcome_index_right, :projects => @projects) %> +
+ +<% content_for :header_tags do %> +<%= stylesheet_link_tag 'scm' %> +<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, + :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %> +<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, + :title => "#{Setting.app_title}: #{l(:label_activity)}") %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/welcome/index.rhtml --- a/app/views/welcome/index.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -

<%= l(:label_home) %>

- -
- <%= textilizable Setting.welcome_text %> - <% if @news.any? %> -
-

<%=l(:label_news_latest)%>

- <%= render :partial => 'news/news', :collection => @news %> - <%= link_to l(:label_news_view_all), :controller => 'news' %> -
- <% end %> - <%= call_hook(:view_welcome_index_left, :projects => @projects) %> -
- -
- <% if @projects.any? %> -
-

<%=l(:label_project_latest)%>

- -
- <% end %> - <%= call_hook(:view_welcome_index_right, :projects => @projects) %> -
- -<% content_for :header_tags do %> -<%= stylesheet_link_tag 'scm' %> -<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, - :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %> -<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, - :title => "#{Setting.app_title}: #{l(:label_activity)}") %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/welcome/robots.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/welcome/robots.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,9 @@ +User-agent: * +<% @projects.each do |p| -%> +Disallow: /projects/<%= p.to_param %>/repository +Disallow: /projects/<%= p.to_param %>/issues +Disallow: /projects/<%= p.to_param %>/activity +<% end -%> +Disallow: /issues/gantt +Disallow: /issues/calendar +Disallow: /activity diff -r df51e8ff578d -r c6c2cbd0afee app/views/welcome/robots.rhtml --- a/app/views/welcome/robots.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -User-agent: * -<% @projects.each do |p| -%> -Disallow: /projects/<%= p.to_param %>/repository -Disallow: /projects/<%= p.to_param %>/issues -Disallow: /projects/<%= p.to_param %>/activity -<% end -%> -Disallow: /issues/gantt -Disallow: /issues/calendar -Disallow: /activity diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/_content.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/wiki/_content.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,3 @@ +
+ <%= textilizable content, :text, :attachments => content.page.attachments %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/_content.rhtml --- a/app/views/wiki/_content.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -
- <%= textilizable content, :text, :attachments => content.page.attachments %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/_sidebar.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/wiki/_sidebar.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,9 @@ +<% if @wiki && @wiki.sidebar -%> + <%= textilizable @wiki.sidebar.content, :text %> +<% end -%> + +

<%= l(:label_wiki) %>

+ +<%= link_to l(:field_start_page), {:action => 'show', :id => nil} %>
+<%= link_to l(:label_index_by_title), {:action => 'index'} %>
+<%= link_to l(:label_index_by_date), {:action => 'date_index'} %>
diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/_sidebar.rhtml --- a/app/views/wiki/_sidebar.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -<% if @wiki && @wiki.sidebar -%> - <%= textilizable @wiki.sidebar.content, :text %> -<% end -%> - -

<%= l(:label_wiki) %>

- -<%= link_to l(:field_start_page), {:action => 'show', :id => nil} %>
-<%= link_to l(:label_index_by_title), {:action => 'index'} %>
-<%= link_to l(:label_index_by_date), {:action => 'date_index'} %>
diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/annotate.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/wiki/annotate.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,32 @@ +
+<%= link_to(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit') %> +<%= link_to(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %> +
+ +

<%= @page.pretty_title %>

+ +

+<%= l(:label_version) %> <%= link_to @annotate.content.version, :action => 'show', :id => @page.title, :version => @annotate.content.version %> +(<%= @annotate.content.author ? @annotate.content.author.name : "anonyme" %>, <%= format_time(@annotate.content.updated_on) %>) +

+ +<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %> + + + +<% line_num = 1 %> +<% @annotate.lines.each do |line| -%> + + + + + + +<% line_num += 1 %> +<% end -%> + +
<%= line_num %><%= link_to line[0], :controller => 'wiki', :action => 'show', :project_id => @project, :id => @page.title, :version => line[0] %><%= h(line[1]) %>
<%=h line[2] %>
+ +<% content_for :header_tags do %> +<%= stylesheet_link_tag 'scm' %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/annotate.rhtml --- a/app/views/wiki/annotate.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -
-<%= link_to(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit') %> -<%= link_to(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %> -
- -

<%= @page.pretty_title %>

- -

-<%= l(:label_version) %> <%= link_to @annotate.content.version, :action => 'show', :id => @page.title, :version => @annotate.content.version %> -(<%= @annotate.content.author ? @annotate.content.author.name : "anonyme" %>, <%= format_time(@annotate.content.updated_on) %>) -

- -<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %> - - - -<% line_num = 1 %> -<% @annotate.lines.each do |line| -%> - - - - - - -<% line_num += 1 %> -<% end -%> - -
<%= line_num %><%= link_to line[0], :controller => 'wiki', :action => 'show', :project_id => @project, :id => @page.title, :version => line[0] %><%= h(line[1]) %>
<%=h line[2] %>
- -<% content_for :header_tags do %> -<%= stylesheet_link_tag 'scm' %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/destroy.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/wiki/destroy.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,19 @@ +

<%=h @page.pretty_title %>

+ +<% form_tag({}, :method => :delete) do %> +
+

<%= l(:text_wiki_page_destroy_question, :descendants => @descendants_count) %>

+


+ +<% if @reassignable_to.any? %> +
+: +<%= select_tag 'reassign_to_id', wiki_page_options_for_select(@reassignable_to), + :onclick => "$('todo_reassign').checked = true;" %> +<% end %> +

+
+ +<%= submit_tag l(:button_apply) %> +<%= link_to l(:button_cancel), :controller => 'wiki', :action => 'show', :project_id => @project, :id => @page.title %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/destroy.rhtml --- a/app/views/wiki/destroy.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -

<%=h @page.pretty_title %>

- -<% form_tag({}, :method => :delete) do %> -
-

<%= l(:text_wiki_page_destroy_question, :descendants => @descendants_count) %>

-


- -<% if @reassignable_to.any? %> -
-: -<%= select_tag 'reassign_to_id', wiki_page_options_for_select(@reassignable_to), - :onclick => "$('todo_reassign').checked = true;" %> -<% end %> -

-
- -<%= submit_tag l(:button_apply) %> -<%= link_to l(:button_cancel), :controller => 'wiki', :action => 'show', :project_id => @project, :id => @page.title %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/diff.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/wiki/diff.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,17 @@ +
+<%= link_to(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %> +
+ +

<%= @page.pretty_title %>

+ +

+<%= l(:label_version) %> <%= link_to @diff.content_from.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => @diff.content_from.version %> +(<%= @diff.content_from.author ? @diff.content_from.author.name : "anonyme" %>, <%= format_time(@diff.content_from.updated_on) %>) +→ +<%= l(:label_version) %> <%= link_to @diff.content_to.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => @diff.content_to.version %>/<%= @page.content.version %> +(<%= @diff.content_to.author ? @diff.content_to.author.name : "anonyme" %>, <%= format_time(@diff.content_to.updated_on) %>) +

+ +
+<%= simple_format_without_paragraph @diff.to_html %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/diff.rhtml --- a/app/views/wiki/diff.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -
-<%= link_to(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %> -
- -

<%= @page.pretty_title %>

- -

-<%= l(:label_version) %> <%= link_to @diff.content_from.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => @diff.content_from.version %> -(<%= @diff.content_from.author ? @diff.content_from.author.name : "anonyme" %>, <%= format_time(@diff.content_from.updated_on) %>) -→ -<%= l(:label_version) %> <%= link_to @diff.content_to.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => @diff.content_to.version %>/<%= @page.content.version %> -(<%= @diff.content_to.author ? @diff.content_to.author.name : "anonyme" %>, <%= format_time(@diff.content_to.updated_on) %>) -

- -
-<%= simple_format_without_paragraph @diff.to_html %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/wiki/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,29 @@ +

<%=h @page.pretty_title %>

+ +<% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %> +<%= f.hidden_field :version %> +<%= error_messages_for 'content' %> + +

<%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %>

+


<%= f.text_field :comments, :size => 120 %>

+


<%= render :partial => 'attachments/form' %>

+ +

<%= submit_tag l(:button_save) %> + <%= link_to_remote l(:label_preview), + { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, + :method => :post, + :update => 'preview', + :with => "Form.serialize('wiki_form')", + :complete => "Element.scrollTo('preview')" + }, :accesskey => accesskey(:preview) %>

+<%= wikitoolbar_for 'content_text' %> +<% end %> + +
+ +<% content_for :header_tags do %> + <%= stylesheet_link_tag 'scm' %> + <%= robot_exclusion_tag %> +<% end %> + +<% html_title @page.pretty_title %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/edit.rhtml --- a/app/views/wiki/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -

<%=h @page.pretty_title %>

- -<% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %> -<%= f.hidden_field :version %> -<%= error_messages_for 'content' %> - -

<%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %>

-


<%= f.text_field :comments, :size => 120 %>

-


<%= render :partial => 'attachments/form' %>

- -

<%= submit_tag l(:button_save) %> - <%= link_to_remote l(:label_preview), - { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, - :method => :post, - :update => 'preview', - :with => "Form.serialize('wiki_form')", - :complete => "Element.scrollTo('preview')" - }, :accesskey => accesskey(:preview) %>

-<%= wikitoolbar_for 'content_text' %> -<% end %> - -
- -<% content_for :header_tags do %> - <%= stylesheet_link_tag 'scm' %> - <%= robot_exclusion_tag %> -<% end %> - -<% html_title @page.pretty_title %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/export.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/wiki/export.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,21 @@ + + + +<%=h @page.pretty_title %> + + + + +<%= textilizable @content, :text, :wiki_links => :local %> + + diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/export.rhtml --- a/app/views/wiki/export.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ - - - -<%=h @page.pretty_title %> - - - - -<%= textilizable @content, :text, :wiki_links => :local %> - - diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/export_multiple.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/wiki/export_multiple.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,34 @@ + + + +<%=h @wiki.project.name %> + + + + + +<%= l(:label_index_by_title) %> + + +<% @pages.each do |page| %> +
+ +<%= textilizable page.content ,:text, :wiki_links => :anchor %> +<% end %> + + + diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/export_multiple.rhtml --- a/app/views/wiki/export_multiple.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ - - - -<%=h @wiki.project.name %> - - - - - -<%= l(:label_index_by_title) %> - - -<% @pages.each do |page| %> -
- -<%= textilizable page.content ,:text, :wiki_links => :anchor %> -<% end %> - - - diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/history.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/wiki/history.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,35 @@ +

<%= @page.pretty_title %>

+ +

<%= l(:label_history) %>

+ +<% form_tag({:action => "diff"}, :method => :get) do %> + + + + + + + + + + + +<% show_diff = @versions.size > 1 %> +<% line_num = 1 %> +<% @versions.each do |ver| %> +"> + + + + + + + + +<% line_num += 1 %> +<% end %> + +
#<%= l(:field_updated_on) %><%= l(:field_author) %><%= l(:field_comments) %>
<%= link_to ver.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < @versions.size) %><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %><%= format_time(ver.updated_on) %><%= link_to_user ver.author %><%=h ver.comments %><%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %>
+<%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %> +<%= pagination_links_full @version_pages, @version_count, :page_param => :p %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/history.rhtml --- a/app/views/wiki/history.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -

<%= @page.pretty_title %>

- -

<%= l(:label_history) %>

- -<% form_tag({:action => "diff"}, :method => :get) do %> - - - - - - - - - - - -<% show_diff = @versions.size > 1 %> -<% line_num = 1 %> -<% @versions.each do |ver| %> -"> - - - - - - - - -<% line_num += 1 %> -<% end %> - -
#<%= l(:field_updated_on) %><%= l(:field_author) %><%= l(:field_comments) %>
<%= link_to ver.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < @versions.size) %><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %><%= format_time(ver.updated_on) %><%= link_to_user ver.author %><%=h ver.comments %><%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %>
-<%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %> -<%= pagination_links_full @version_pages, @version_count, :page_param => :p %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/rename.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/wiki/rename.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,12 @@ +

<%= l(:button_rename) %>: <%= @original_title %>

+ +<%= error_messages_for 'page' %> + +<% labelled_tabular_form_for :wiki_page, @page, :url => { :action => 'rename' } do |f| %> +
+

<%= f.text_field :title, :required => true, :size => 100 %>

+

<%= f.check_box :redirect_existing_links %>

+

<%= f.select :parent_id, "" + wiki_page_options_for_select(@wiki.pages.all(:include => :parent) - @page.self_and_descendants, @page.parent), :label => :field_parent_title %>

+
+<%= submit_tag l(:button_rename) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/rename.rhtml --- a/app/views/wiki/rename.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -

<%= l(:button_rename) %>: <%= @original_title %>

- -<%= error_messages_for 'page' %> - -<% labelled_tabular_form_for :wiki_page, @page, :url => { :action => 'rename' } do |f| %> -
-

<%= f.text_field :title, :required => true, :size => 100 %>

-

<%= f.check_box :redirect_existing_links %>

-

<%= f.select :parent_id, "" + wiki_page_options_for_select(@wiki.pages.all(:include => :parent) - @page.self_and_descendants, @page.parent), :label => :field_parent_title %>

-
-<%= submit_tag l(:button_rename) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/show.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/wiki/show.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,61 @@ +
+<% if @editable %> +<%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) if @content.version == @page.content.version %> +<%= watcher_tag(@page, User.current) %> +<%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :id => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %> +<%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :id => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %> +<%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :id => @page.title}, :class => 'icon icon-move') if @content.version == @page.content.version %> +<%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :id => @page.title}, :method => :delete, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') %> +<%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :id => @page.title, :version => @content.version }, :class => 'icon icon-cancel') if @content.version < @page.content.version %> +<% end %> +<%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %> +
+ +<%= breadcrumb(@page.ancestors.reverse.collect {|parent| link_to h(parent.pretty_title), {:id => parent.title, :project_id => parent.project}}) %> + +<% if @content.version != @page.content.version %> +

+ <%= link_to(('« ' + l(:label_previous)), :action => 'show', :id => @page.title, :project_id => @page.project, :version => (@content.version - 1)) + " - " if @content.version > 1 %> + <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %> + <%= '(' + link_to('diff', :controller => 'wiki', :action => 'diff', :id => @page.title, :project_id => @page.project, :version => @content.version) + ')' if @content.version > 1 %> - + <%= link_to((l(:label_next) + ' »'), :action => 'show', :id => @page.title, :project_id => @page.project, :version => (@content.version + 1)) + " - " if @content.version < @page.content.version %> + <%= link_to(l(:label_current_version), :action => 'show', :id => @page.title, :project_id => @page.project) %> +
+ <%= @content.author ? @content.author.name : "anonyme" %>, <%= format_time(@content.updated_on) %>
+ <%=h @content.comments %> +

+
+<% end %> + +<%= render(:partial => "wiki/content", :locals => {:content => @content}) %> + +<%= link_to_attachments @page %> + +<% if @editable && authorize_for('wiki', 'add_attachment') %> +
+

<%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;", + :id => 'attach_files_link' %>

+<% form_tag({ :controller => 'wiki', :action => 'add_attachment', :project_id => @project, :id => @page.title }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %> +
+

<%= render :partial => 'attachments/form' %>

+
+<%= submit_tag l(:button_add) %> +<%= link_to l(:button_cancel), {}, :onclick => "Element.hide('add_attachment_form'); Element.show('attach_files_link'); return false;" %> +<% end %> +
+<% end %> + +<% other_formats_links do |f| %> + <%= f.link_to 'HTML', :url => {:id => @page.title, :version => @content.version} %> + <%= f.link_to 'TXT', :url => {:id => @page.title, :version => @content.version} %> +<% end if User.current.allowed_to?(:export_wiki_pages, @project) %> + +<% content_for :header_tags do %> + <%= stylesheet_link_tag 'scm' %> +<% end %> + +<% content_for :sidebar do %> + <%= render :partial => 'sidebar' %> +<% end %> + +<% html_title @page.pretty_title %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/wiki/show.rhtml --- a/app/views/wiki/show.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,61 +0,0 @@ -
-<% if @editable %> -<%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) if @content.version == @page.content.version %> -<%= watcher_tag(@page, User.current) %> -<%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :id => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %> -<%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :id => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %> -<%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :id => @page.title}, :class => 'icon icon-move') if @content.version == @page.content.version %> -<%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :id => @page.title}, :method => :delete, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') %> -<%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :id => @page.title, :version => @content.version }, :class => 'icon icon-cancel') if @content.version < @page.content.version %> -<% end %> -<%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %> -
- -<%= breadcrumb(@page.ancestors.reverse.collect {|parent| link_to h(parent.pretty_title), {:id => parent.title, :project_id => parent.project}}) %> - -<% if @content.version != @page.content.version %> -

- <%= link_to(('« ' + l(:label_previous)), :action => 'show', :id => @page.title, :project_id => @page.project, :version => (@content.version - 1)) + " - " if @content.version > 1 %> - <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %> - <%= '(' + link_to('diff', :controller => 'wiki', :action => 'diff', :id => @page.title, :project_id => @page.project, :version => @content.version) + ')' if @content.version > 1 %> - - <%= link_to((l(:label_next) + ' »'), :action => 'show', :id => @page.title, :project_id => @page.project, :version => (@content.version + 1)) + " - " if @content.version < @page.content.version %> - <%= link_to(l(:label_current_version), :action => 'show', :id => @page.title, :project_id => @page.project) %> -
- <%= @content.author ? @content.author.name : "anonyme" %>, <%= format_time(@content.updated_on) %>
- <%=h @content.comments %> -

-
-<% end %> - -<%= render(:partial => "wiki/content", :locals => {:content => @content}) %> - -<%= link_to_attachments @page %> - -<% if @editable && authorize_for('wiki', 'add_attachment') %> -
-

<%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;", - :id => 'attach_files_link' %>

-<% form_tag({ :controller => 'wiki', :action => 'add_attachment', :project_id => @project, :id => @page.title }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %> -
-

<%= render :partial => 'attachments/form' %>

-
-<%= submit_tag l(:button_add) %> -<%= link_to l(:button_cancel), {}, :onclick => "Element.hide('add_attachment_form'); Element.show('attach_files_link'); return false;" %> -<% end %> -
-<% end %> - -<% other_formats_links do |f| %> - <%= f.link_to 'HTML', :url => {:id => @page.title, :version => @content.version} %> - <%= f.link_to 'TXT', :url => {:id => @page.title, :version => @content.version} %> -<% end if User.current.allowed_to?(:export_wiki_pages, @project) %> - -<% content_for :header_tags do %> - <%= stylesheet_link_tag 'scm' %> -<% end %> - -<% content_for :sidebar do %> - <%= render :partial => 'sidebar' %> -<% end %> - -<% html_title @page.pretty_title %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/wikis/destroy.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/wikis/destroy.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,10 @@ +

<%=l(:label_confirmation)%>

+ +
+

<%= @project.name %>
<%=l(:text_wiki_destroy_confirmation)%>

+ +<% form_tag({:controller => 'wikis', :action => 'destroy', :id => @project}) do %> +<%= hidden_field_tag "confirm", 1 %> +<%= submit_tag l(:button_delete) %> +<% end %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/wikis/destroy.rhtml --- a/app/views/wikis/destroy.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -

<%=l(:label_confirmation)%>

- -
-

<%= @project.name %>
<%=l(:text_wiki_destroy_confirmation)%>

- -<% form_tag({:controller => 'wikis', :action => 'destroy', :id => @project}) do %> -<%= hidden_field_tag "confirm", 1 %> -<%= submit_tag l(:button_delete) %> -<% end %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/workflows/_action_menu.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/workflows/_action_menu.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,5 @@ +
+<%= link_to l(:button_edit), {:action => 'edit'}, :class => 'icon icon-edit' %> +<%= link_to l(:button_copy), {:action => 'copy'}, :class => 'icon icon-copy' %> +<%= link_to l(:field_summary), {:action => 'index'}, :class => 'icon icon-summary' %> +
diff -r df51e8ff578d -r c6c2cbd0afee app/views/workflows/_action_menu.rhtml --- a/app/views/workflows/_action_menu.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -
-<%= link_to l(:button_edit), {:action => 'edit'}, :class => 'icon icon-edit' %> -<%= link_to l(:button_copy), {:action => 'copy'}, :class => 'icon icon-copy' %> -<%= link_to l(:field_summary), {:action => 'index'}, :class => 'icon icon-summary' %> -
diff -r df51e8ff578d -r c6c2cbd0afee app/views/workflows/copy.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/workflows/copy.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,33 @@ +<%= render :partial => 'action_menu' %> + +

<%=l(:label_workflow)%>

+ +<% form_tag({}, :id => 'workflow_copy_form') do %> +
+

+ + <%= l(:label_tracker) %>
+ <%= select_tag('source_tracker_id', + "" + + "" + + options_from_collection_for_select(@trackers, 'id', 'name', @source_tracker && @source_tracker.id)) %>
+ <%= l(:label_role) %>
+ <%= select_tag('source_role_id', + "" + + "" + + options_from_collection_for_select(@roles, 'id', 'name', @source_role && @source_role.id)) %> +

+

+ + <%= l(:label_tracker) %>
+ <%= select_tag 'target_tracker_ids', + "" + + options_from_collection_for_select(@trackers, 'id', 'name', @target_trackers && @target_trackers.map(&:id)), :multiple => true %>
+ <%= l(:label_role) %>
+ <%= select_tag 'target_role_ids', + "" + + options_from_collection_for_select(@roles, 'id', 'name', @target_roles && @target_roles.map(&:id)), :multiple => true %> +

+
+<%= submit_tag l(:button_copy) %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/workflows/copy.rhtml --- a/app/views/workflows/copy.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -<%= render :partial => 'action_menu' %> - -

<%=l(:label_workflow)%>

- -<% form_tag({}, :id => 'workflow_copy_form') do %> -
-

- - <%= l(:label_tracker) %>
- <%= select_tag('source_tracker_id', - "" + - "" + - options_from_collection_for_select(@trackers, 'id', 'name', @source_tracker && @source_tracker.id)) %>
- <%= l(:label_role) %>
- <%= select_tag('source_role_id', - "" + - "" + - options_from_collection_for_select(@roles, 'id', 'name', @source_role && @source_role.id)) %> -

-

- - <%= l(:label_tracker) %>
- <%= select_tag 'target_tracker_ids', - "" + - options_from_collection_for_select(@trackers, 'id', 'name', @target_trackers && @target_trackers.map(&:id)), :multiple => true %>
- <%= l(:label_role) %>
- <%= select_tag 'target_role_ids', - "" + - options_from_collection_for_select(@roles, 'id', 'name', @target_roles && @target_roles.map(&:id)), :multiple => true %> -

-
-<%= submit_tag l(:button_copy) %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/workflows/edit.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/workflows/edit.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,50 @@ +<%= render :partial => 'action_menu' %> + +

<%=l(:label_workflow)%>

+ +

<%=l(:text_workflow_edit)%>:

+ +<% form_tag({}, :method => 'get') do %> +

+ + <%= select_tag 'role_id', options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %> + + + <%= select_tag 'tracker_id', options_from_collection_for_select(@trackers, "id", "name", @tracker && @tracker.id) %> + + <%= hidden_field_tag 'used_statuses_only', '0' %> + +

+

+<%= submit_tag l(:button_edit), :name => nil %> +

+<% end %> + +<% if @tracker && @role && @statuses.any? %> + <% form_tag({}, :id => 'workflow_form' ) do %> + <%= hidden_field_tag 'tracker_id', @tracker.id %> + <%= hidden_field_tag 'role_id', @role.id %> +
+ <%= render :partial => 'form', :locals => {:name => 'always', :workflows => @workflows['always']} %> + +
+ <%= l(:label_additional_workflow_transitions_for_author) %> +
+ <%= render :partial => 'form', :locals => {:name => 'author', :workflows => @workflows['author']} %> +
+
+ <%= javascript_tag "hideFieldset($('author_workflows'))" unless @workflows['author'].present? %> + +
+ <%= l(:label_additional_workflow_transitions_for_assignee) %> +
+ <%= render :partial => 'form', :locals => {:name => 'assignee', :workflows => @workflows['assignee']} %> +
+
+ <%= javascript_tag "hideFieldset($('assignee_workflows'))" unless @workflows['assignee'].present? %> +
+ <%= submit_tag l(:button_save) %> + <% end %> +<% end %> + +<% html_title(l(:label_workflow)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/workflows/edit.rhtml --- a/app/views/workflows/edit.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -<%= render :partial => 'action_menu' %> - -

<%=l(:label_workflow)%>

- -

<%=l(:text_workflow_edit)%>:

- -<% form_tag({}, :method => 'get') do %> -

- - <%= select_tag 'role_id', options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %> - - - <%= select_tag 'tracker_id', options_from_collection_for_select(@trackers, "id", "name", @tracker && @tracker.id) %> - - <%= hidden_field_tag 'used_statuses_only', '0' %> - -

-

-<%= submit_tag l(:button_edit), :name => nil %> -

-<% end %> - -<% if @tracker && @role && @statuses.any? %> - <% form_tag({}, :id => 'workflow_form' ) do %> - <%= hidden_field_tag 'tracker_id', @tracker.id %> - <%= hidden_field_tag 'role_id', @role.id %> -
- <%= render :partial => 'form', :locals => {:name => 'always', :workflows => @workflows['always']} %> - -
- <%= l(:label_additional_workflow_transitions_for_author) %> -
- <%= render :partial => 'form', :locals => {:name => 'author', :workflows => @workflows['author']} %> -
-
- <%= javascript_tag "hideFieldset($('author_workflows'))" unless @workflows['author'].present? %> - -
- <%= l(:label_additional_workflow_transitions_for_assignee) %> -
- <%= render :partial => 'form', :locals => {:name => 'assignee', :workflows => @workflows['assignee']} %> -
-
- <%= javascript_tag "hideFieldset($('assignee_workflows'))" unless @workflows['assignee'].present? %> -
- <%= submit_tag l(:button_save) %> - <% end %> -<% end %> - -<% html_title(l(:label_workflow)) -%> diff -r df51e8ff578d -r c6c2cbd0afee app/views/workflows/index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/workflows/index.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,35 @@ +<%= render :partial => 'action_menu' %> + +

<%=l(:label_workflow)%>

+ +<% if @workflow_counts.empty? %> +

<%= l(:label_no_data) %>

+<% else %> +
+ + + + + <% @workflow_counts.first.last.each do |role, count| %> + + + <% end %> + + + +<% @workflow_counts.each do |tracker, roles| -%> + + + <% roles.each do |role, count| -%> + + <% end -%> + +<% end -%> + +
+ <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> +
<%= h tracker %> + <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> +
+
+<% end %> diff -r df51e8ff578d -r c6c2cbd0afee app/views/workflows/index.rhtml --- a/app/views/workflows/index.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -<%= render :partial => 'action_menu' %> - -

<%=l(:label_workflow)%>

- -<% if @workflow_counts.empty? %> -

<%= l(:label_no_data) %>

-<% else %> -
- - - - - <% @workflow_counts.first.last.each do |role, count| %> - - - <% end %> - - - -<% @workflow_counts.each do |tracker, roles| -%> - - - <% roles.each do |role, count| -%> - - <% end -%> - -<% end -%> - -
- <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> -
<%= h tracker %> - <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> -
-
-<% end %> diff -r df51e8ff578d -r c6c2cbd0afee extra/sample_plugin/app/views/example/say_goodbye.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extra/sample_plugin/app/views/example/say_goodbye.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,5 @@ +

<%= l(:text_say_goodbye) %>

+ +<% content_for :header_tags do %> + <%= stylesheet_link_tag "example.css", :plugin => "sample_plugin", :media => "screen" %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee extra/sample_plugin/app/views/example/say_goodbye.rhtml --- a/extra/sample_plugin/app/views/example/say_goodbye.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -

<%= l(:text_say_goodbye) %>

- -<% content_for :header_tags do %> - <%= stylesheet_link_tag "example.css", :plugin => "sample_plugin", :media => "screen" %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee extra/sample_plugin/app/views/example/say_hello.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extra/sample_plugin/app/views/example/say_hello.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,9 @@ +

<%= l(:text_say_hello) %>

+ +

: <%= @value %>

+ +<%= link_to_if_authorized 'Good bye', :action => 'say_goodbye', :id => @project %> + +<% content_for :header_tags do %> + <%= stylesheet_link_tag "example.css", :plugin => "sample_plugin", :media => "screen" %> +<% end %> diff -r df51e8ff578d -r c6c2cbd0afee extra/sample_plugin/app/views/example/say_hello.rhtml --- a/extra/sample_plugin/app/views/example/say_hello.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -

<%= l(:text_say_hello) %>

- -

: <%= @value %>

- -<%= link_to_if_authorized 'Good bye', :action => 'say_goodbye', :id => @project %> - -<% content_for :header_tags do %> - <%= stylesheet_link_tag "example.css", :plugin => "sample_plugin", :media => "screen" %> -<% end %> diff -r df51e8ff578d -r c6c2cbd0afee extra/sample_plugin/app/views/my/blocks/_sample_block.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extra/sample_plugin/app/views/my/blocks/_sample_block.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,3 @@ +

Sample block

+ +You are <%= h(User.current) %> and this is a sample block for My Page added from a plugin. diff -r df51e8ff578d -r c6c2cbd0afee extra/sample_plugin/app/views/my/blocks/_sample_block.rhtml --- a/extra/sample_plugin/app/views/my/blocks/_sample_block.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -

Sample block

- -You are <%= h(User.current) %> and this is a sample block for My Page added from a plugin. diff -r df51e8ff578d -r c6c2cbd0afee extra/sample_plugin/app/views/settings/_sample_plugin_settings.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extra/sample_plugin/app/views/settings/_sample_plugin_settings.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,3 @@ +

<%= text_field_tag 'settings[sample_setting]', @settings['sample_setting'] %>

+ +

<%= text_field_tag 'settings[foo]', @settings['foo'] %>

diff -r df51e8ff578d -r c6c2cbd0afee extra/sample_plugin/app/views/settings/_sample_plugin_settings.rhtml --- a/extra/sample_plugin/app/views/settings/_sample_plugin_settings.rhtml Fri Feb 24 18:29:34 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -

<%= text_field_tag 'settings[sample_setting]', @settings['sample_setting'] %>

- -

<%= text_field_tag 'settings[foo]', @settings['foo'] %>