diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-02 22:41:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-02 22:41:53 +0000 |
commit | 3e0acc0b7e1fda93d8bdd9df7b7c8c9551fad864 (patch) | |
tree | a6c9bbd76bc54f0c1c7a41845e8831fa83053ff9 /app/views/issues | |
parent | 636579b17ddd4b775b060cdb0ac3a94db5e4cb2b (diff) | |
download | redmine-3e0acc0b7e1fda93d8bdd9df7b7c8c9551fad864.tar.gz redmine-3e0acc0b7e1fda93d8bdd9df7b7c8c9551fad864.zip |
Slight improvements to the browser views.
ApplicationHelper#set_html_title replaced by html_title with arguments and can be called several times in views to append elements to the title.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1032 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues')
-rw-r--r-- | app/views/issues/index.rhtml | 6 | ||||
-rw-r--r-- | app/views/issues/show.rhtml | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/issues/index.rhtml b/app/views/issues/index.rhtml index c298b9bcc..48697c505 100644 --- a/app/views/issues/index.rhtml +++ b/app/views/issues/index.rhtml @@ -1,6 +1,6 @@ <% if @query.new_record? %> <h2><%=l(:label_issue_plural)%></h2> - <% set_html_title l(:label_issue_plural) %> + <% html_title(l(:label_issue_plural)) %> <% form_tag({ :controller => 'queries', :action => 'new' }, :id => 'query_form') do %> <%= hidden_field_tag('project_id', @project.id) if @project %> @@ -32,9 +32,9 @@ <% end %> </div> - <h2><%= @query.name %></h2> + <h2><%=h @query.name %></h2> <div id="query_form"></div> - <% set_html_title @query.name %> + <% html_title @query.name %> <% end %> <%= error_messages_for 'query' %> <% if @query.valid? %> diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 37e1d4abd..006efa3d5 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -116,7 +116,7 @@ end %> </div> -<% set_html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> +<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> <% content_for :sidebar do %> <%= render :partial => 'issues/sidebar' %> |