OSDN Git Service

More detailed html title on several views.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 7 Dec 2007 18:42:40 +0000 (18:42 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 7 Dec 2007 18:42:40 +0000 (18:42 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@964 e93f8b46-1217-0410-a6f0-8f06a7374b81

30 files changed:
app/views/admin/index.rhtml
app/views/admin/info.rhtml
app/views/admin/mail_options.rhtml
app/views/admin/projects.rhtml
app/views/custom_fields/list.rhtml
app/views/documents/show.rhtml
app/views/enumerations/list.rhtml
app/views/issue_statuses/list.rhtml
app/views/my/account.rhtml
app/views/my/page.rhtml
app/views/news/index.rhtml
app/views/news/show.rhtml
app/views/projects/activity.rhtml
app/views/projects/calendar.rhtml
app/views/projects/gantt.rhtml
app/views/projects/list.rhtml
app/views/projects/list_documents.rhtml
app/views/projects/list_files.rhtml
app/views/projects/settings.rhtml
app/views/projects/show.rhtml
app/views/repositories/changes.rhtml
app/views/repositories/revision.rhtml
app/views/repositories/revisions.rhtml
app/views/repositories/show.rhtml
app/views/roles/list.rhtml
app/views/roles/workflow.rhtml
app/views/search/index.rhtml
app/views/settings/edit.rhtml
app/views/trackers/list.rhtml
app/views/users/list.rhtml

index 02eb5ae..933e288 100644 (file)
@@ -42,4 +42,6 @@
 
 <p class="icon22 icon22-info">
 <%= link_to l(:label_information_plural), :controller => 'admin', :action => 'info' %>
-</p>
\ No newline at end of file
+</p>
+
+<% set_html_title l(:label_administration) -%>
index 179fda1..4d442f5 100644 (file)
@@ -23,3 +23,5 @@
     <% end %>
 </table>
 <% end %>
+
+<% set_html_title(l(:label_information_plural)) -%>
index 997cc3b..a4b9238 100644 (file)
@@ -29,3 +29,5 @@
 
 <%= submit_tag l(:button_save) %>
 <% end %>
+
+<% set_html_title(l(:field_mail_notification)) -%>
index 423d56e..e9d5e85 100644 (file)
@@ -47,3 +47,5 @@
 
 <p><%= pagination_links_full @project_pages, :status => @status %>
 [ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ]</p>
+
+<% set_html_title l(:label_project_plural) -%>
index 8862b3d..bbdfeff 100644 (file)
@@ -50,4 +50,6 @@
 </div>
 <% end %>
 
-<%= javascript_tag "showTab('#{@tab}');" %>
\ No newline at end of file
+<%= javascript_tag "showTab('#{@tab}');" %>
+
+<% set_html_title(l(:label_custom_field_plural)) -%>
index 779315b..8f53f1a 100644 (file)
@@ -3,9 +3,9 @@
 <%= 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' %>
 </div>
 
-<h2><%= @document.title %></h2>
+<h2><%=h @document.title %></h2>
 
-<p><em><%= @document.category.name %><br />
+<p><em><%=h @document.category.name %><br />
 <%= format_date @document.created_on %></em></p>
 <%= textilizable @document.description, :attachments => @document.attachments %>
 <br />
@@ -34,3 +34,5 @@
   <%= submit_tag l(:button_add) %>
   <% end %> 
 <% end %>
+
+<% set_html_title h(@document.title) -%>
index bab4df8..2e069f3 100644 (file)
@@ -24,3 +24,5 @@
 
 <p><%= link_to l(:label_enumeration_new), { :action => 'new', :opt => option } %></p>
 <% end %>
+
+<% set_html_title(l(:label_enumerations)) -%>
index aaeec55..05506f3 100644 (file)
@@ -32,4 +32,6 @@
   </tbody>
 </table>
 
-<%= pagination_links_full @issue_status_pages %>
\ No newline at end of file
+<%= pagination_links_full @issue_status_pages %>
+
+<% set_html_title(l(:label_issue_status_plural)) -%>
index 0badc4b..fe2e562 100644 (file)
@@ -44,3 +44,5 @@
 <% content_for :sidebar do %>
 <%= render :partial => 'sidebar' %>
 <% end %>
+
+<% set_html_title l(:label_my_account) -%>
index 89d11dd..db292da 100644 (file)
@@ -38,3 +38,5 @@
 
 <div id="context-menu" style="display: none;"></div>
 <%= javascript_tag 'new ContextMenu({})' %>
+
+<% set_html_title l(:label_my_page) -%>
index a956f86..0b677d2 100644 (file)
@@ -32,3 +32,5 @@
 <% content_for :header_tags do %>
   <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
 <% end %>
+
+<% set_html_title l(:label_news_plural) -%>
index 32a24e8..e4d7da4 100644 (file)
@@ -41,3 +41,5 @@
 <p><%= submit_tag l(:button_add) %></p>
 <% end %>
 <% end %>
+
+<% set_html_title h(@news.title) -%>
index c902d60..d22443b 100644 (file)
@@ -39,3 +39,5 @@
 <p><%= submit_tag l(:button_apply), :class => 'button-small' %></p>
 <% end %>
 <% end %>
+
+<% set_html_title l(:label_activity) -%>
index 2c02d59..39f1716 100644 (file)
@@ -38,3 +38,5 @@
     <p><%= submit_tag l(:button_apply), :class => 'button-small' %></p>
     <% end %>
 <% end %>
+
+<% set_html_title l(:label_calendar) -%>
index a667548..395514b 100644 (file)
@@ -245,3 +245,5 @@ if Date.today >= @date_from and Date.today <= @date_to %>
     <p><%= submit_tag l(:button_apply), :class => 'button-small' %></p>
     <% end %>
 <% end %>
+
+<% set_html_title l(:label_gantt) -%>
index c6e5b4d..c7630c0 100644 (file)
@@ -16,3 +16,5 @@
 <span class="icon icon-fav"><%= l(:label_my_projects) %></span>
 </div>
 <% end %>
+
+<% set_html_title l(:label_project_plural) -%>
index bb272ee..6829b9b 100644 (file)
@@ -35,3 +35,5 @@
     <label><%= radio_button_tag 'sort_by', 'author', (@sort_by == 'author'), :onclick => 'this.form.submit();' %> <%= l(:field_author) %></label>
     <% end %>
 <% end %>
+
+<% set_html_title l(:label_document_plural) -%>
index 0e4f19d..b9f6885 100644 (file)
@@ -41,4 +41,6 @@
   <% end %>
 <% end %>
   </tbody>
-</table>
\ No newline at end of file
+</table>
+
+<% set_html_title l(:label_attachment_plural) -%>
index 13359de..37a469d 100644 (file)
@@ -14,3 +14,5 @@
 
 <%= tab = params[:tab] ? h(params[:tab]) : project_settings_tabs.first[:name]
 javascript_tag "showTab('#{tab}');" %>
+
+<% set_html_title l(:label_settings) -%>
index bb01df1..ecde32b 100644 (file)
@@ -81,3 +81,5 @@
 <% content_for :header_tags do %>
 <%= auto_discovery_link_tag(:atom, {:action => 'activity', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
 <% end %>
+
+<% set_html_title l(:label_overview) -%>
index f843983..2184591 100644 (file)
@@ -16,3 +16,5 @@
 </p>
 
 <%= render :partial => 'revisions', :locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => @entry }%>
+
+<% set_html_title(h(@entry.name)) -%>
index 64d1668..d87dfa9 100644 (file)
@@ -62,3 +62,5 @@
 <% content_for :header_tags do %>
 <%= stylesheet_link_tag "scm" %>
 <% end %>
+
+<% set_html_title("#{l(:label_revision)} #{@changeset.revision}") -%>
index 2a45fc2..4483a48 100644 (file)
@@ -16,3 +16,5 @@
 <%= stylesheet_link_tag "scm" %>
 <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
 <% end %>
+
+<% set_html_title l(:label_revision_plural) -%>
index c9f44d5..9fb4551 100644 (file)
@@ -21,3 +21,5 @@
 <% content_for :header_tags do %>
 <%= stylesheet_link_tag "scm" %>
 <% end %>
+
+<% set_html_title l(:label_repository) -%>
index bdea247..02bb20f 100644 (file)
@@ -32,3 +32,5 @@
 <p><%= pagination_links_full @role_pages %></p>
 
 <p><%= link_to l(:label_permissions_report), :action => 'report' %></p>
+
+<% set_html_title(l(:label_role_plural)) -%>
index 0a43574..02f1b48 100644 (file)
@@ -54,3 +54,5 @@
 <% end %>
 
 <% end %>
+
+<% set_html_title(l(:label_workflow)) -%>
index 695107f..9f156cb 100644 (file)
@@ -41,3 +41,5 @@
                    }, :href => url_for(params.merge(:previous => nil, :offset => @pagination_next_date.strftime("%Y%m%d%H%M%S"))) %>\r
 <% end %>\r
 </center></p>\r
+\r
+<% set_html_title(l(:label_search)) -%>\r
index 4a0a400..758045f 100644 (file)
@@ -98,3 +98,5 @@
 
 <%= submit_tag l(:button_save) %>
 <% end %>
+
+<% set_html_title(l(:label_settings)) -%>
index 8517c44..d339bdb 100644 (file)
@@ -30,4 +30,6 @@
   </tbody>
 </table>
 
-<%= pagination_links_full @tracker_pages %>
\ No newline at end of file
+<%= pagination_links_full @tracker_pages %>
+
+<% set_html_title(l(:label_tracker_plural)) -%>
index 2ffbcd6..3f879d7 100644 (file)
@@ -57,4 +57,6 @@
 
 <p><%= pagination_links_full @user_pages, :status => @status %>
 [ <%= @user_pages.current.first_item %> - <%= @user_pages.current.last_item %> / <%= @user_count %> ]
-</p>
\ No newline at end of file
+</p>
+
+<% set_html_title(l(:label_user_plural)) -%>