<dt class="<%= e.event_type %> <%= "grouped" if in_group %> <%= User.current.logged? && e.respond_to?(:event_author) && User.current == e.event_author ? 'me' : nil %>">
<%= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) %>
<span class="time"><%= format_time(e.event_datetime, false) %></span>
- <%= content_tag('span', h(e.project), :class => 'project') if @project.nil? || @project != e.project %>
+ <%= content_tag('span', e.project, :class => 'project') if @project.nil? || @project != e.project %>
<%= link_to format_activity_title(e.event_title), e.event_url %>
</dt>
<dd class="<%= "grouped" if in_group %>"><span class="description"><%= format_activity_description(e.event_description) %></span>
<table class="list plugins">
<% @plugins.each do |plugin| %>
<tr id="plugin-<%= plugin.id %>" class="<%= cycle('odd', 'even') %>">
- <td class="name"><span class="name"><%=h plugin.name %></span>
- <%= 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? %>
+ <td class="name"><span class="name"><%= plugin.name %></span>
+ <%= content_tag('span', plugin.description, :class => 'description') unless plugin.description.blank? %>
+ <%= content_tag('span', link_to(plugin.url, plugin.url), :class => 'url') unless plugin.url.blank? %>
</td>
- <td class="author"><%= plugin.author_url.blank? ? h(plugin.author) : link_to(h(plugin.author), plugin.author_url) %></td>
+ <td class="author"><%= plugin.author_url.blank? ? plugin.author : link_to(plugin.author, plugin.author_url) %></td>
<td class="version"><span class="icon"><%= plugin.version %></span></td>
<td class="configure"><%= link_to(l(:button_configure), plugin_settings_path(plugin)) if plugin.configurable? %></td>
</tr>
:controller => 'attachments', :action => 'show',
:id => attachment, :filename => attachment.filename %>
<% end %>
- <%= h(" - #{attachment.description}") unless attachment.description.blank? %>
+ <%= " - #{attachment.description}" unless attachment.description.blank? %>
<span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
<% if options[:deletable] %>
<%= link_to image_tag('delete.png'), attachment_path(attachment),
:title => l(:button_delete) %>
<% end %>
<% if options[:author] %>
- <span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span>
+ <span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span>
<% end %>
</p>
<% end %>
<h2><%=h @attachment.filename %></h2>
<div class="attachments">
-<p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
+<p><%= "#{@attachment.description} - " unless @attachment.description.blank? %>
<span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
<span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
<td colspan="2">
<span class="icon icon-attachment"><%= attachment.filename_was %></span>
<span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
- <span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span>
+ <span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span>
</td>
</tr>
<tr id="attachment-<%= attachment.id %>">
<h2><%=h @attachment.filename %></h2>
<div class="attachments">
-<p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
+<p><%= "#{@attachment.description} - " unless @attachment.description.blank? %>
<span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
<span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
<tbody>
<% for source in @auth_sources %>
<tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>">
- <td class="name"><%= link_to(h(source.name), :action => 'edit', :id => source)%></td>
- <td><%= h source.auth_method_name %></td>
- <td><%= h source.host %></td>
- <td><%= h source.users.count %></td>
+ <td class="name"><%= link_to(source.name, :action => 'edit', :id => source)%></td>
+ <td><%= source.auth_method_name %></td>
+ <td><%= source.host %></td>
+ <td><%= source.users.count %></td>
<td class="buttons">
<%= link_to l(:button_test), try_connection_auth_source_path(source), :class => 'icon icon-test' %>
<%= delete_link auth_source_path(source) %>
<% Board.board_tree(@boards) do |board, level| %>
<tr class="<%= cycle 'odd', 'even' %>">
<td class="name" style="padding-left: <%= level * 18 %>px;">
- <%= link_to h(board.name), project_board_path(board.project, board), :class => "board" %><br />
+ <%= link_to board.name, project_board_path(board.project, board), :class => "board" %><br />
<%=h board.description %>
</td>
<td class="topic-count"><%= board.topics_count %></td>
<div id="add-message" style="display:none;">
<% if User.current.allowed_to?(:add_messages, @board.project) %>
-<h2><%= link_to h(@board.name), project_board_path(@project, @board) %> » <%= l(:label_message_new) %></h2>
+<h2><%= link_to @board.name, project_board_path(@project, @board) %> » <%= l(:label_message_new) %></h2>
<%= form_for @message, :url => new_board_message_path(@board), :html => {:multipart => true, :id => 'message-form'} do |f| %>
<%= render :partial => 'messages/form', :locals => {:f => f} %>
<p><%= submit_tag l(:button_create) %>
<% end %>
</div>
-<h2><%=h @board.name %></h2>
-<p class="subtitle"><%=h @board.description %></p>
+<h2><%= @board.name %></h2>
+<p class="subtitle"><%= @board.description %></p>
<% if @topics.any? %>
<table class="list messages">
<tbody>
<% @topics.each do |topic| %>
<tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
- <td class="subject"><%= link_to h(topic.subject), board_message_path(@board, topic) %></td>
+ <td class="subject"><%= link_to topic.subject, board_message_path(@board, topic) %></td>
<td class="author"><%= link_to_user(topic.author) %></td>
<td class="created_on"><%= format_time(topic.created_on) %></td>
<td class="reply-count"><%= topic.replies_count %></td>
-<h2><%= @query.new_record? ? l(:label_calendar) : h(@query.name) %></h2>
+<h2><%= @query.new_record? ? l(:label_calendar) : @query.name %></h2>
<%= form_tag({:controller => 'calendars', :action => 'show', :project_id => @project},
:method => :get, :id => 'query_form') do %>
<% calendar.events_on(day).each do |i| %>
<% if i.is_a? Issue %>
<div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip">
- <%= h("#{i.project} -") unless @project && @project == i.project %>
+ <%= "#{i.project} -" unless @project && @project == i.project %>
<%= link_to_issue i, :truncate => 30 %>
<span class="tip"><%= render_issue_tooltip i %></span>
</div>
<% else %>
<span class="icon icon-package">
- <%= h("#{i.project} -") unless @project && @project == i.project %>
+ <%= "#{i.project} -" unless @project && @project == i.project %>
<%= link_to_version i%>
</span>
<% end %>
-<h2><%=h @status %></h2>
+<h2><%= @status %></h2>
<% if @message.present? %>
- <p id="errorExplanation"><%=h @message %></p>
+ <p id="errorExplanation"><%= @message %></p>
<% end %>
<p><a href="javascript:history.back()"><%= l(:button_back) %></a></p>
<a href="#" class="submenu"><%= l(:field_status) %></a>
<ul>
<% @allowed_statuses.each do |s| -%>
- <li><%= context_menu_link h(s.name), bulk_update_issues_path(:ids => @issue_ids, :issue => {:status_id => s}, :back_url => @back), :method => :post,
+ <li><%= context_menu_link s.name, bulk_update_issues_path(:ids => @issue_ids, :issue => {:status_id => s}, :back_url => @back), :method => :post,
:selected => (@issue && s == @issue.status), :disabled => !@can[:edit] %></li>
<% end -%>
</ul>
<a href="#" class="submenu"><%= l(:field_tracker) %></a>
<ul>
<% @trackers.each do |t| -%>
- <li><%= context_menu_link h(t.name), bulk_update_issues_path(:ids => @issue_ids, :issue => {'tracker_id' => t}, :back_url => @back), :method => :post,
+ <li><%= context_menu_link t.name, bulk_update_issues_path(:ids => @issue_ids, :issue => {'tracker_id' => t}, :back_url => @back), :method => :post,
:selected => (@issue && t == @issue.tracker), :disabled => !@can[:edit] %></li>
<% end -%>
</ul>
<a href="#" class="submenu"><%= l(:field_priority) %></a>
<ul>
<% @priorities.each do |p| -%>
- <li><%= context_menu_link h(p.name), bulk_update_issues_path(:ids => @issue_ids, :issue => {'priority_id' => p}, :back_url => @back), :method => :post,
+ <li><%= context_menu_link p.name, bulk_update_issues_path(:ids => @issue_ids, :issue => {'priority_id' => p}, :back_url => @back), :method => :post,
:selected => (@issue && p == @issue.priority), :disabled => (!@can[:edit] || @issues.detect {|i| !i.leaf?}) %></li>
<% end -%>
</ul>
:disabled => !@can[:edit] %></li>
<% end %>
<% @assignables.each do |u| -%>
- <li><%= context_menu_link h(u.name), bulk_update_issues_path(:ids => @issue_ids, :issue => {'assigned_to_id' => u}, :back_url => @back), :method => :post,
+ <li><%= context_menu_link u.name, bulk_update_issues_path(:ids => @issue_ids, :issue => {'assigned_to_id' => u}, :back_url => @back), :method => :post,
:selected => (@issue && u == @issue.assigned_to), :disabled => !@can[:edit] %></li>
<% end -%>
<li><%= context_menu_link l(:label_nobody), bulk_update_issues_path(:ids => @issue_ids, :issue => {'assigned_to_id' => 'none'}, :back_url => @back), :method => :post,
<a href="#" class="submenu"><%= l(:field_category) %></a>
<ul>
<% @project.issue_categories.each do |u| -%>
- <li><%= context_menu_link h(u.name), bulk_update_issues_path(:ids => @issue_ids, :issue => {'category_id' => u}, :back_url => @back), :method => :post,
+ <li><%= context_menu_link u.name, bulk_update_issues_path(:ids => @issue_ids, :issue => {'category_id' => u}, :back_url => @back), :method => :post,
:selected => (@issue && u == @issue.category), :disabled => !@can[:edit] %></li>
<% end -%>
<li><%= context_menu_link l(:label_none), bulk_update_issues_path(:ids => @issue_ids, :issue => {'category_id' => 'none'}, :back_url => @back), :method => :post,
<% @options_by_custom_field.each do |field, options| %>
<li class="folder cf_<%= field.id %>">
- <a href="#" class="submenu"><%= h(field.name) %></a>
+ <a href="#" class="submenu"><%= field.name %></a>
<ul>
<% options.each do |text, value| %>
<li><%= bulk_update_custom_field_context_menu_link(field, text, value || text) %></li>
<a href="#" class="submenu"><%= l(:field_activity) %></a>
<ul>
<% @activities.each do |u| -%>
- <li><%= context_menu_link h(u.name), {:controller => 'timelog', :action => 'bulk_update', :ids => @time_entries.collect(&:id), :time_entry => {'activity_id' => u}, :back_url => @back}, :method => :post,
+ <li><%= context_menu_link u.name, {:controller => 'timelog', :action => 'bulk_update', :ids => @time_entries.collect(&:id), :time_entry => {'activity_id' => u}, :back_url => @back}, :method => :post,
:selected => (@time_entry && u == @time_entry.activity), :disabled => !@can[:edit] %></li>
<% end -%>
<li><%= context_menu_link l(:label_none), {:controller => 'timelog', :action => 'bulk_update', :ids => @time_entries.collect(&:id), :time_entry => {'activity_id' => 'none'}, :back_url => @back}, :method => :post,
<% @options_by_custom_field.each do |field, options| %>
<li class="folder cf_<%= field.id %>">
- <a href="#" class="submenu"><%= h(field.name) %></a>
+ <a href="#" class="submenu"><%= field.name %></a>
<ul>
<% options.each do |text, value| %>
<li><%= bulk_update_time_entry_custom_field_context_menu_link(field, text, value || text) %></li>
(@custom_field.trackers.include? tracker),
:id => "custom_field_tracker_ids_#{tracker.id}" %>
<label class="no-css" for="custom_field_tracker_ids_<%=tracker.id%>">
- <%= h(tracker.name) %>
+ <%= tracker.name %>
</label>
<% end %>
<%= hidden_field_tag "custom_field[tracker_ids][]", '' %>
<fieldset class="box" id="custom_field_project_ids"><legend><%= l(:label_project_plural) %></legend>
<%= render_project_nested_lists(Project.all) do |p|
- content_tag('label', check_box_tag('custom_field[project_ids][]', p.id, @custom_field.projects.to_a.include?(p), :id => nil) + ' ' + h(p))
+ content_tag('label', check_box_tag('custom_field[project_ids][]', p.id, @custom_field.projects.to_a.include?(p), :id => nil) + ' ' + p)
end %>
<%= hidden_field_tag('custom_field[project_ids][]', '', :id => nil) %>
<p><%= check_all_links 'custom_field_project_ids' %></p>
<tbody>
<% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%>
<tr class="<%= cycle("odd", "even") %>">
- <td class="name"><%= link_to h(custom_field.name), edit_custom_field_path(custom_field) %></td>
+ <td class="name"><%= link_to custom_field.name, edit_custom_field_path(custom_field) %></td>
<td><%= l(custom_field.format.label) %></td>
<td><%= checked_image custom_field.is_required? %></td>
<% if tab[:name] == 'IssueCustomField' %>
-<h4><%= link_to h(document.title), document_path(document) %></h4>
+<h4><%= link_to document.title, document_path(document) %></h4>
<p><em><%= format_time(document.updated_on) %></em></p>
<div class="wiki">
<% end %>
</div>
-<h2><%=h @document.title %></h2>
+<h2><%= @document.title %></h2>
-<p><em><%=h @document.category.name %><br />
+<p><em><%= @document.category.name %><br />
<%= format_date @document.created_on %></em></p>
<% if @document.custom_field_values.any? %>
</tr></thead>
<% enumerations.each do |enumeration| %>
<tr class="<%= cycle('odd', 'even') %>">
- <td class="name"><%= link_to h(enumeration), edit_enumeration_path(enumeration) %></td>
+ <td class="name"><%= link_to enumeration, edit_enumeration_path(enumeration) %></td>
<td class="tick"><%= checked_image enumeration.is_default? %></td>
<td class="tick"><%= checked_image enumeration.active? %></td>
<td class="reorder"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}, :put) %></td>
<% if container.is_a?(Version) -%>
<tr>
<th colspan="6">
- <%= link_to(h(container), {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package") %>
+ <%= link_to(container, {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package") %>
</th>
</tr>
<% end -%>
<% end %>
</div>
-<h2><%= @query.new_record? ? l(:label_gantt) : h(@query.name) %></h2>
+<h2><%= @query.new_record? ? l(:label_gantt) : @query.name %></h2>
<%= form_tag({:controller => 'gantts', :action => 'show',
:project_id => @project, :month => params[:month],
style += "height: #{height}px;"
%>
<%= content_tag(:div, :style => style, :class => "gantt_hdr") do %>
- <%= link_to h("#{month_f.year}-#{month_f.month}"),
+ <%= link_to "#{month_f.year}-#{month_f.month}",
@gantt.params.merge(:year => month_f.year, :month => month_f.month),
:title => "#{month_name(month_f.month)} #{month_f.year}" %>
<% end %>
<tbody>
<% @groups.each do |group| %>
<tr id="group-<%= group.id %>" class="<%= cycle 'odd', 'even' %> <%= "builtin" if group.builtin? %>">
- <td class="name"><%= link_to h(group), edit_group_path(group) %></td>
+ <td class="name"><%= link_to group, edit_group_path(group) %></td>
<td class="user_count"><%= (@user_count_by_group_id[group.id] || 0) unless group.builtin? %></td>
<td class="buttons"><%= delete_link group unless group.builtin? %></td>
</tr>
<ul>
<% @group.users.each do |user| %>
- <li><%=h user %></li>
+ <li><%= user %></li>
<% end %>
</ul>
<tbody>
<% for status in @issue_statuses %>
<tr class="<%= cycle("odd", "even") %>">
- <td class="name"><%= link_to h(status.name), edit_issue_status_path(status) %></td>
+ <td class="name"><%= link_to status.name, edit_issue_status_path(status) %></td>
<% if Issue.use_status_for_done_ratio? %>
- <td><%= h status.default_done_ratio %></td>
+ <td><%= status.default_done_ratio %></td>
<% end %>
<td><%= checked_image status.is_closed? %></td>
<td class="reorder"><%= reorder_links('issue_status', {:action => 'update', :id => status, :page => params[:page]}, :put) %></td>
<td class="subject" style="width: 50%">
<%= relation.to_s(@issue) {|other| link_to_issue(other, :project => Setting.cross_project_issue_relations?)}.html_safe %>
</td>
- <td class="status"><%=h other_issue.status.name %></td>
+ <td class="status"><%= other_issue.status.name %></td>
<td class="start_date"><%= format_date(other_issue.start_date) %></td>
<td class="due_date"><%= format_date(other_issue.due_date) %></td>
<td class="buttons"><%= link_to image_tag('link_break.png'),
<% @custom_fields.each do |custom_field| %>
<p>
- <label><%= h(custom_field.name) %></label>
+ <label><%= custom_field.name %></label>
<%= custom_field_tag_for_bulk_edit('issue', custom_field, @issues, @issue_params[:custom_field_values][custom_field.id.to_s]) %>
</p>
<% end %>
-<h2><%=h "#{@issue.tracker.name} ##{@issue.id}" %></h2>
+<h2><%= "#{@issue.tracker.name} ##{@issue.id}" %></h2>
<%= render :partial => 'edit' %>
<% content_for :header_tags do %>
<% end %>
</div>
-<h2><%= @query.new_record? ? l(:label_issue_plural) : h(@query.name) %></h2>
+<h2><%= @query.new_record? ? l(:label_issue_plural) : @query.name %></h2>
<% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %>
<%= form_tag({ :controller => 'issues', :action => 'index', :project_id => @project },
<table class="attributes">
<%= issue_fields_rows do |rows|
- rows.left l(:field_status), h(@issue.status.name), :class => 'status'
- rows.left l(:field_priority), h(@issue.priority.name), :class => 'priority'
+ rows.left l(:field_status), @issue.status.name, :class => 'status'
+ rows.left l(:field_priority), @issue.priority.name, :class => 'priority'
unless @issue.disabled_core_fields.include?('assigned_to_id')
rows.left l(:field_assigned_to), avatar(@issue.assigned_to, :size => "14").to_s.html_safe + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
end
unless @issue.disabled_core_fields.include?('category_id')
- rows.left l(:field_category), h(@issue.category ? @issue.category.name : "-"), :class => 'category'
+ rows.left l(:field_category), (@issue.category ? @issue.category.name : "-"), :class => 'category'
end
unless @issue.disabled_core_fields.include?('fixed_version_id')
rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version'
<html lang="<%= current_language %>">
<head>
<meta charset="utf-8" />
-<title><%=h html_title %></title>
+<title><%= html_title %></title>
<meta name="description" content="<%= Redmine::Info.app_name %>" />
<meta name="keywords" content="issue,bug,tracker" />
<%= csrf_meta_tag %>
<!-- page specific tags -->
<%= yield :header_tags -%>
</head>
-<body class="<%=h body_css_classes %>">
+<body class="<%= body_css_classes %>">
<div id="wrapper">
<div id="wrapper2">
<div id="wrapper3">
-<h1><%= link_to(h("#{issue.tracker.name} ##{issue.id}: #{issue.subject}"), issue_url) %></h1>
+<h1><%= link_to("#{issue.tracker.name} ##{issue.id}: #{issue.subject}", issue_url) %></h1>
<%= render_email_issue_attributes(issue, users.first, true) %>
<p><%= l(:notice_account_activated) %></p>
-<p><%= l(:label_login) %>: <%= link_to h(@login_url), @login_url %></p>
+<p><%= l(:label_login) %>: <%= link_to @login_url, @login_url %></p>
<p><%= l(:mail_body_account_activation_request, h(@user.login)) %></p>
-<p><%= link_to h(@url), @url %></p>
+<p><%= link_to @url, @url %></p>
<% else %>
<p><%= l(:mail_body_account_information) %>:</p>
<ul>
- <li><%= l(:field_login) %>: <%=h @user.login %></li>
- <li><%= l(:field_password) %>: <%=h @password %></li>
+ <li><%= l(:field_login) %>: <%= @user.login %></li>
+ <li><%= l(:field_password) %>: <%= @password %></li>
</ul>
<% end %>
-<p><%= l(:label_login) %>: <%= link_to h(@login_url), @login_url %></p>
+<p><%= l(:label_login) %>: <%= link_to @login_url, @login_url %></p>
-<%= link_to h(@added_to), @added_to_url %><br />
+<%= link_to @added_to, @added_to_url %><br />
<ul><% @attachments.each do |attachment | %>
-<li><%=h attachment.filename %></li>
+<li><%= attachment.filename %></li>
<% end %></ul>
-<%= link_to(h(@document.title), @document_url) %> (<%=h @document.category.name %>)<br />
+<%= link_to(@document.title, @document_url) %> (<%= @document.category.name %>)<br />
<br />
<%= textilizable(@document, :description, :only_path => false) %>
<p><%= l(:mail_body_lost_password) %><br />
-<%= link_to h(@url), @url %></p>
+<%= link_to @url, @url %></p>
-<p><%= l(:field_login) %>: <b><%=h @token.user.login %></b></p>
+<p><%= l(:field_login) %>: <b><%= @token.user.login %></b></p>
-<h1><%=h @message.board.project.name %> - <%=h @message.board.name %>: <%= link_to(h(@message.subject), @message_url) %></h1>
-<em><%=h @message.author %></em>
+<h1><%= @message.board.project.name %> - <%= @message.board.name %>: <%= link_to(@message.subject, @message_url) %></h1>
+<em><%= @message.author %></em>
<%= textilizable(@message, :content, :only_path => false) %>
-<h1><%= link_to(h(@news.title), @news_url) %></h1>
-<em><%=h @news.author.name %></em>
+<h1><%= link_to(@news.title, @news_url) %></h1>
+<em><%= @news.author.name %></em>
<%= textilizable(@news, :description, :only_path => false) %>
-<h1><%= link_to(h(@news.title), @news_url) %></h1>
+<h1><%= link_to(@news.title, @news_url) %></h1>
<p><%= l(:text_user_wrote, :value => h(@comment.author)) %></p>
<p><%= l(:mail_body_register) %><br />
-<%= link_to h(@url), @url %></p>
+<%= link_to @url, @url %></p>
<p>This is a test email sent by Redmine.<br />
-Redmine URL: <%= link_to h(@url), @url %></p>
+Redmine URL: <%= link_to @url, @url %></p>
-<p><%= l(:mail_body_wiki_content_added, :id => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url),
+<p><%= l(:mail_body_wiki_content_added, :id => link_to(@wiki_content.page.pretty_title, @wiki_content_url),
:author => h(@wiki_content.author)).html_safe %><br />
-<em><%=h @wiki_content.comments %></em></p>
+<em><%= @wiki_content.comments %></em></p>
-<p><%= l(:mail_body_wiki_content_updated, :id => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url),
+<p><%= l(:mail_body_wiki_content_updated, :id => link_to(@wiki_content.page.pretty_title, @wiki_content_url),
:author => h(@wiki_content.author)).html_safe %><br />
-<em><%=h @wiki_content.comments %></em></p>
+<em><%= @wiki_content.comments %></em></p>
<p><%= l(:label_view_diff) %>:<br />
-<%= link_to h(@wiki_diff_url), @wiki_diff_url %></p>
+<%= link_to @wiki_diff_url, @wiki_diff_url %></p>
<%= board_breadcrumb(@message) %>
-<h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
+<h2><%= avatar(@topic.author, :size => "24") %><%= @topic.subject %></h2>
<%= form_for @message, {
:as => :message,
-<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2>
+<h2><%= link_to @board.name, :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2>
<%= form_for @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %>
) if @message.destroyable_by?(User.current) %>
</div>
-<h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
+<h2><%= avatar(@topic.author, :size => "24") %><%= @topic.subject %></h2>
<div class="message">
<p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
</div>
<h4>
<%= 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}" } %>
+ <%= link_to message.subject, { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
-
<%= authoring message.created_on, message.author %>
</h4>
<h4><%= l(:label_api_access_key) %></h4>
<div>
<%= link_to_function(l(:button_show), "$('#api-access-key').toggle();")%>
- <pre id='api-access-key' class='autoscroll'><%= h(@user.api_key) %></pre>
+ <pre id='api-access-key' class='autoscroll'><%= @user.api_key %></pre>
</div>
<%= javascript_tag("$('#api-access-key').hide();") %>
<p>
</tr>
<% entries_by_day[day].each do |entry| -%>
<tr class="time-entry" style="border-bottom: 1px solid #f5f5f5;">
- <td class="activity"><%=h entry.activity %></td>
- <td class="subject"><%=h entry.project %> <%= h(' - ') + link_to_issue(entry.issue, :truncate => 50) if entry.issue %></td>
- <td class="comments"><%=h entry.comments %></td>
+ <td class="activity"><%= entry.activity %></td>
+ <td class="subject"><%= entry.project %> <%= h(' - ') + link_to_issue(entry.issue, :truncate => 50) if entry.issue %></td>
+ <td class="comments"><%= entry.comments %></td>
<td class="hours"><%= html_hours("%.2f" % entry.hours) %></td>
<td class="buttons">
<% if entry.editable_by?(@user) -%>
<p><%= link_to_project(news.project) + ': ' unless @project %>
-<%= link_to h(news.title), news_path(news) %>
+<%= link_to news.title, news_path(news) %>
<% if news.comments_count > 0 %><span class="comments">(<%= l(:label_x_comments, :count => news.comments_count) %>)</span><% end %>
<br />
-<% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %>
+<% unless news.summary.blank? %><span class="summary"><%= news.summary %></span><br /><% end %>
<span class="author"><%= authoring news.created_on, news.author %></span></p>
<% else %>
<% @newss.each do |news| %>
<h3><%= avatar(news.author, :size => "24") %><%= link_to_project(news.project) + ': ' unless news.project == @project %>
- <%= link_to h(news.title), news_path(news) %>
+ <%= link_to news.title, news_path(news) %>
<%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %></h3>
<p class="author"><%= authoring news.created_on, news.author %></p>
<div class="wiki">
</div>
<% end %>
-<p><% unless @news.summary.blank? %><em><%=h @news.summary %></em><br /><% end %>
+<p><% unless @news.summary.blank? %><em><%= @news.summary %></em><br /><% end %>
<span class="author"><%= authoring @news.created_on, @news.author %></span></p>
<div class="wiki">
<%= textilizable(@news, :description) %>
<% @trackers.each do |tracker| %>
<label class="floating">
<%= check_box_tag 'project[tracker_ids][]', tracker.id, @project.trackers.to_a.include?(tracker), :id => nil %>
- <%=h tracker %>
+ <%= tracker %>
</label>
<% end %>
<%= hidden_field_tag 'project[tracker_ids][]', '' %>
<%= check_box_tag 'project[issue_custom_field_ids][]', custom_field.id, (@project.all_issue_custom_fields.include? custom_field),
:disabled => (custom_field.is_for_all? ? "disabled" : nil),
:id => nil %>
- <%=h custom_field.name %>
+ <%= custom_field.name %>
</label>
<% end %>
<%= hidden_field_tag 'project[issue_custom_field_ids][]', '' %>
<div class="members box">
<h3><%=l(:label_member_plural)%></h3>
<% @users_by_role.keys.sort.each do |role| %>
- <p><span class="label"><%=h role %>:</span> <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ").html_safe %></p>
+ <p><span class="label"><%= role %>:</span> <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ").html_safe %></p>
<% end %>
</div>
<% end %>
<% if @project_to_destroy.descendants.any? %>
<br /><%= l(:text_subprojects_destroy_warning,
- content_tag('strong', h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')))).html_safe %>
+ content_tag('strong', @project_to_destroy.descendants.collect{|p| p.to_s}.join(', '))).html_safe %>
<% end %>
</p>
<p>
<% members = @members.group_by {|m| m.role } %>
<% members.keys.sort{|x,y| x.position <=> y.position}.each do |role| %>
-<h3><%= h(role.name) %></h3>
+<h3><%= role.name %></h3>
<ul>
<% members[role].each do |m| %>
<li><%= link_to_user m.user %> (<%= format_date m.created_on %>)</li>
<th><%= l(:field_name) %></th>
<th><%= l(:enumeration_system_activity) %></th>
<% TimeEntryActivity.new.available_custom_fields.each do |value| %>
- <th><%= h value.name %></th>
+ <th><%= value.name %></th>
<% end %>
<th><%= l(:field_active) %></th>
</tr></thead>
<tr class="<%= cycle('odd', 'even') %>">
<td class="name">
<%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %>
- <%= h(enumeration) %>
+ <%= enumeration %>
</td>
<td class="tick"><%= checked_image !enumeration.project %></td>
<% enumeration.custom_field_values.each do |value| %>
next if board.new_record? %>
<tr class="<%= cycle 'odd', 'even' %>">
<td class="name" style="padding-left: <%= level * 18 %>px;"><%= link_to board.name, project_board_path(@project, board) %></td>
- <td class="description"><%=h board.description %></td>
+ <td class="description"><%= board.description %></td>
<td class="reorder">
<% if authorize_for("boards", "edit") %>
<%= reorder_links('board', {:controller => 'boards', :action => 'update', :project_id => @project, :id => board}, :put) %>
<% for category in @project.issue_categories %>
<% unless category.new_record? %>
<tr class="<%= cycle 'odd', 'even' %>">
- <td class="name"><%=h(category.name) %></td>
- <td><%=h(category.assigned_to.name) if category.assigned_to %></td>
+ <td class="name"><%= category.name %></td>
+ <td><%= category.assigned_to.name if category.assigned_to %></td>
<td class="buttons">
<% if User.current.allowed_to?(:manage_categories, @project) %>
<%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %>
{:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier.present? %>
</td>
<td><%= checked_image repository.is_default? %></td>
- <td><%=h repository.scm_name %></td>
- <td><%=h repository.url %></td>
+ <td><%= repository.scm_name %></td>
+ <td><%= repository.url %></td>
<td class="buttons">
<% if User.current.allowed_to?(:manage_repository, @project) %>
<%= link_to(l(:label_user_plural), committers_repository_path(repository),
<tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>">
<td class="name"><%= link_to_version version %></td>
<td class="date"><%= format_date(version.effective_date) %></td>
- <td class="description"><%=h version.description %></td>
+ <td class="description"><%= version.description %></td>
<td class="status"><%= l("version_status_#{version.status}") %></td>
<td class="sharing"><%=h format_version_sharing(version.sharing) %></td>
- <td><%= 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? %></td>
+ <td><%= link_to_if_authorized(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? %></td>
<td class="buttons">
<% if version.project == @project && User.current.allowed_to?(:manage_versions, @project) %>
<%= link_to l(:button_edit), edit_version_path(version), :class => 'icon icon-edit' %>
<% end %>
<ul>
<% unless @project.homepage.blank? %>
- <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to h(@project.homepage), @project.homepage %></li>
+ <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to @project.homepage, @project.homepage %></li>
<% end %>
<% if @subprojects.any? %>
<li><span class="label"><%=l(:label_subproject_plural)%>:</span>
<h3><%=l(:label_issue_tracking)%></h3>
<ul>
<% for tracker in @trackers %>
- <li><%= link_to h(tracker.name), project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>:
+ <li><%= link_to tracker.name, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>:
<%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
:total => @total_issues_by_tracker[tracker].to_i) %>
</li>
<% @queries.each do |query| %>
<tr class="<%= cycle('odd', 'even') %>">
<td class="name">
- <%= link_to h(query.name), :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %>
+ <%= link_to query.name, :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %>
</td>
<td class="buttons">
<% if query.editable_by?(User.current) %>
<thead><tr>
<th></th>
<% for status in @statuses %>
-<th><%=h status.name %></th>
+<th><%= status.name %></th>
<% end %>
<th><strong><%=l(:label_open_issues_plural)%></strong></th>
<th><strong><%=l(:label_closed_issues_plural)%></strong></th>
<tbody>
<% for row in rows %>
<tr class="<%= cycle("odd", "even") %>">
- <td class="name"><%= link_to h(row.name), aggregate_path(@project, field_name, row) %></td>
+ <td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td>
<% for status in @statuses %>
<td><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, aggregate_path(@project, field_name, row, :status_id => status.id) %></td>
<% end %>
<tbody>
<% for row in rows %>
<tr class="<%= cycle("odd", "even") %>">
- <td class="name"><%= link_to h(row.name), aggregate_path(@project, field_name, row) %></td>
+ <td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td>
<td><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td>
<td><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td>
<td><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*") %></td>
-<%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
+<%= link_to(@repository.identifier.present? ? @repository.identifier : 'root',
:action => 'show', :id => @project,
:repository_id => @repository.identifier_param,
:path => nil, :rev => @rev) %>
link_path << '/' unless link_path.empty?
link_path << "#{dir}"
%>
- / <%= link_to h(dir), :action => 'show', :id => @project, :repository_id => @repository.identifier_param,
+ / <%= link_to dir, :action => 'show', :id => @project, :repository_id => @repository.identifier_param,
:path => to_path_param(link_path), :rev => @rev %>
<% end %>
<% if filename %>
- / <%= link_to h(filename),
+ / <%= link_to filename,
:action => 'changes', :id => @project, :repository_id => @repository.identifier_param,
:path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
<% end %>
# For Mercurial *tip*, @rev and @changeset are nil.
rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
%>
-<%= "@ #{h rev_text}" unless rev_text.blank? %>
+<%= "@ #{rev_text}" unless rev_text.blank? %>
<% html_title(with_leading_slash(path)) -%>
depth = params[:depth].to_i %>
<% ent_path = Redmine::CodesetUtil.replace_invalid_utf8(entry.path) %>
<% ent_name = Redmine::CodesetUtil.replace_invalid_utf8(entry.name) %>
-<tr id="<%= tr_id %>" class="<%= h params[:parent_id] %> entry <%= entry.kind %>">
+<tr id="<%= tr_id %>" class="<%= params[:parent_id] %> entry <%= entry.kind %>">
<td style="padding-left: <%=18 * depth%>px;" class="<%=
@repository.report_last_commit ? "filename" : "filename_no_report" %>">
<% if entry.is_dir? %>
:depth => (depth + 1),
:parent_id => tr_id)) %>');"> </span>
<% end %>
-<%= link_to h(ent_name),
+<%= link_to ent_name,
{:action => (entry.is_dir? ? 'show' : 'changes'), :id => @project, :repository_id => @repository.identifier_param, :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)}")%>
</td>
<% i = 0 -%>
<% @committers.each do |committer, user_id| -%>
<tr class="<%= cycle 'odd', 'even' %>">
- <td><%=h committer %></td>
+ <td><%= committer %></td>
<td>
<%= hidden_field_tag "committers[#{i}][]", committer, :id => nil %>
<%= select_tag "committers[#{i}][]",
<table class="revision-info">
<% if @changeset.scmid.present? %>
<tr>
- <td>ID</td><td><%= h(@changeset.scmid) %></td>
+ <td>ID</td><td><%= @changeset.scmid %></td>
</tr>
<% end %>
<% if @changeset.parents.present? %>
<h3><%= l(:label_repository_plural) %></h3>
<p>
<%= @repositories.sort.collect {|repo|
- link_to h(repo.name),
+ link_to repo.name,
{:controller => 'repositories', :action => 'show',
:id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil},
:class => 'repository' + (repo == @repository ? ' selected' : '')
<tbody>
<% for role in @roles %>
<tr class="<%= cycle("odd", "even") %>">
- <td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), edit_role_path(role))) %></td>
+ <td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, edit_role_path(role))) %></td>
<td class="reorder">
<% unless role.builtin? %>
<%= reorder_links('role', {:action => 'update', :id => role, :page => params[:page]}, :put) %>
<th><%=l(:label_permissions)%></th>
<% @roles.each do |role| %>
<th>
- <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %>
+ <%= content_tag(role.builtin? ? 'em' : 'span', role.name) %>
<%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.role-#{role.id}')",
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
</th>
<%= l_or_humanize(mod, :prefix => 'project_module_') %>
</td>
<% @roles.each do |role| %>
- <td class="role"><%= h(role.name) %></td>
+ <td class="role"><%= role.name %></td>
<% end %>
</tr>
<% end %>
<dl id="search-results">
<% @results.each do |e| %>
<dt class="<%= e.event_type %>">
- <%= content_tag('span', h(e.project), :class => 'project') unless @project == e.project %>
+ <%= content_tag('span', e.project, :class => 'project') unless @project == e.project %>
<%= link_to(highlight_tokens(e.event_title.truncate(255), @tokens), e.event_url) %>
</dt>
<dd><span class="description"><%= highlight_tokens(e.event_description, @tokens) %></span>
<% end %>
<p>
<%= f.text_field :issue_id, :size => 6 %>
- <span id="time_entry_issue"><%= h("#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}") if @time_entry.issue %></span>
+ <span id="time_entry_issue"><%= "#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}" if @time_entry.issue %></span>
</p>
<p><%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %></p>
<p><%= f.text_field :hours, :size => 6, :required => true %></p>
<% next if hours_for_value.empty? -%>
<tr class="<%= cycle('odd', 'even') %> <%= criterias.length > level+1 ? 'subtotal' : 'last-level' %>">
<%= ("<td></td>" * level).html_safe %>
-<td class="name"><%= h(format_criteria_value(@report.available_criteria[criterias[level]], value)) %></td>
+<td class="name"><%= format_criteria_value(@report.available_criteria[criterias[level]], value) %></td>
<%= ("<td></td>" * (criterias.length - level - 1)).html_safe -%>
<% total = 0 -%>
<% @report.periods.each do |period| -%>
<% IssueCustomField.all.each do |field| %>
<label class="block">
<%= check_box_tag 'tracker[custom_field_ids][]',field.id, @tracker.custom_fields.to_a.include?(field), :id => nil %>
- <%=h field.name %>
+ <%= field.name %>
</label>
<% end %>
</p>
<tbody>
<% for tracker in @trackers %>
<tr class="<%= cycle("odd", "even") %>">
- <td class="name"><%= link_to h(tracker.name), edit_tracker_path(tracker) %></td>
+ <td class="name"><%= link_to tracker.name, edit_tracker_path(tracker) %></td>
<td>
<% unless tracker.workflow_rules.count > 0 %>
<span class="icon icon-warning">
<%= form_for(:user, :url => { :action => 'update' }, :html => {:method => :put}) do %>
<div class="box">
<% Group.givable.sort.each do |group| %>
-<label><%= check_box_tag 'user[group_ids][]', group.id, @user.groups.to_a.include?(group), :id => nil %> <%=h group %></label><br />
+<label><%= check_box_tag 'user[group_ids][]', group.id, @user.groups.to_a.include?(group), :id => nil %> <%= group %></label><br />
<% end %>
<%= hidden_field_tag 'user[group_ids][]', '' %>
</div>
<tbody>
<% for user in @users -%>
<tr class="<%= user.css_classes %> <%= cycle("odd", "even") %>">
- <td class="username"><%= avatar(user, :size => "14") %><%= link_to h(user.login), edit_user_path(user) %></td>
- <td class="firstname"><%= h(user.firstname) %></td>
- <td class="lastname"><%= h(user.lastname) %></td>
- <td class="email"><%= mail_to(h(user.mail)) %></td>
+ <td class="username"><%= avatar(user, :size => "14") %><%= link_to user.login, edit_user_path(user) %></td>
+ <td class="firstname"><%= user.firstname %></td>
+ <td class="lastname"><%= user.lastname %></td>
+ <td class="email"><%= mail_to(user.mail) %></td>
<td class="tick"><%= checked_image user.admin? %></td>
<td class="created_on"><%= format_time(user.created_on) %></td>
<td class="last_login_on"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %>
</div>
-<h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2>
+<h2><%= avatar @user, :size => "50" %> <%= @user.name %></h2>
<div class="splitcontentleft">
<ul>
<li><%=l(:field_login)%>: <%= @user.login %></li>
<% end %>
<% unless @user.pref.hide_mail %>
- <li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li>
+ <li><%=l(:field_mail)%>: <%= mail_to(@user.mail, nil, :encode => 'javascript') %></li>
<% end %>
<% @user.visible_custom_field_values.each do |custom_value| %>
<% if !custom_value.value.blank? %>
- <li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
+ <li><%= custom_value.custom_field.name %>: <%= show_value(custom_value) %></li>
<% end %>
<% end %>
<li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li>
<ul>
<% for membership in @memberships %>
<li><%= link_to_project(membership.project) %>
- (<%=h membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li>
+ (<%= membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li>
<% end %>
</ul>
<% end %>
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
<dt class="<%= e.event_type %>">
<span class="time"><%= format_time(e.event_datetime, false) %></span>
- <%= content_tag('span', h(e.project), :class => 'project') %>
+ <%= content_tag('span', e.project, :class => 'project') %>
<%= link_to format_activity_title(e.event_title), e.event_url %></dt>
<dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd>
<% end -%>
<tr>
<td style="width:130px; text-align:right;">
<% if count[:group] -%>
- <%= link_to(h(count[:group]), project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => count[:group])) %>
+ <%= link_to(count[:group], project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => count[:group])) %>
<% else -%>
<%= link_to(l(:label_none), project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => "!*")) %>
<% end %>
<%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %>
</div>
-<h2><%= h(@version.name) %></h2>
+<h2><%= @version.name %></h2>
<div id="roadmap">
<%= render :partial => 'versions/overview', :locals => {:version => @version} %>
<p>
<em><%= @annotate.content.author ? link_to_user(@annotate.content.author) : l(:label_user_anonymous)
%>, <%= format_time(@annotate.content.updated_on) %> </em><br />
- <%=h @annotate.content.comments %>
+ <%= @annotate.content.comments %>
</p>
<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
<td class="revision"><%= link_to line[0], :controller => 'wiki',
:action => 'show', :project_id => @project,
:id => @page.title, :version => line[0] %></td>
- <td class="author"><%= h(line[1]) %></td>
- <td class="line-code"><pre><%=h line[2] %></pre></td>
+ <td class="author"><%= line[1] %></td>
+ <td class="line-code"><pre><%= line[2] %></pre></td>
</tr>
<% line_num += 1 %>
<% end -%>
<h3><%= format_date(date) %></h3>
<ul>
<% @pages_by_date[date].each do |page| %>
- <li><%= link_to h(page.pretty_title), :action => 'show', :id => page.title, :project_id => page.project %></li>
+ <li><%= link_to page.pretty_title, :action => 'show', :id => page.title, :project_id => page.project %></li>
<% end %>
</ul>
<% end %>
<%= wiki_page_breadcrumb(@page) %>
-<h2><%=h @page.pretty_title %></h2>
+<h2><%= @page.pretty_title %></h2>
<%= form_tag({}, :method => :delete) do %>
<div class="box">
<%= wiki_page_breadcrumb(@page) %>
-<h2><%= h @page.pretty_title %></h2>
+<h2><%= @page.pretty_title %></h2>
<%= form_for @content, :as => :content,
:url => {:action => 'update', :id => @page.title},
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
-<title><%=h @page.pretty_title %></title>
+<title><%= @page.pretty_title %></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style>
body { font:80% Verdana,Tahoma,Arial,sans-serif; }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
-<title><%=h @wiki.project.name %></title>
+<title><%= @wiki.project.name %></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style>
body { font:80% Verdana,Tahoma,Arial,sans-serif; }
<strong><%= l(:label_index_by_title) %></strong>
<ul>
<% @pages.each do |page| %>
- <li><a href="#<%= h(page.title) %>"><%= h(page.pretty_title) %></a></li>
+ <li><a href="#<%= page.title %>"><%= page.pretty_title %></a></li>
<% end %>
</ul>
<% @pages.each do |page| %>
<hr />
-<a name="<%= h(page.title) %>" />
+<a name="<%= page.title %>" />
<%= textilizable page.content ,:text, :wiki_links => :anchor %>
<% end %>
<% line_num = 1 %>
<% @versions.each do |ver| %>
<tr class="wiki-page-version <%= cycle("odd", "even") %>">
- <td class="id"><%= link_to h(ver.version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td>
+ <td class="id"><%= link_to ver.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td>
<td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}').prop('checked', true);") if show_diff && (line_num < @versions.size) %></td>
<td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td>
<td class="updated_on"><%= format_time(ver.updated_on) %></td>
<td class="author"><%= link_to_user ver.author %></td>
- <td class="comments"><%=h ver.comments %></td>
+ <td class="comments"><%= ver.comments %></td>
<td class="buttons">
<%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %>
<%= delete_link wiki_page_path(@page, :version => ver.version) if User.current.allowed_to?(:delete_wiki_pages, @page.project) && @version_count > 1 %>
<%= wiki_page_breadcrumb(@page) %>
-<h2><%= h @original_title %></h2>
+<h2><%= @original_title %></h2>
<%= error_messages_for 'page' %>
<br />
<em><%= @content.author ? link_to_user(@content.author) : l(:label_user_anonymous)
%>, <%= format_time(@content.updated_on) %> </em><br />
- <%=h @content.comments %>
+ <%= @content.comments %>
</p>
<hr />
<% end %>
<h2><%=l(:label_confirmation)%></h2>
<div class="box"><center>
-<p><strong><%= h(@project.name) %></strong><br /><%=l(:text_wiki_destroy_confirmation)%></p>
+<p><strong><%= @project.name %></strong><br /><%=l(:text_wiki_destroy_confirmation)%></p>
<%= form_tag({:controller => 'wikis', :action => 'destroy', :id => @project}) do %>
<%= hidden_field_tag "confirm", 1 %>
<td style="width:<%= 75 / @statuses.size %>%;">
<%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input.new-status-#{new_status.id}')",
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
- <%=h new_status.name %>
+ <%= new_status.name %>
</td>
<% end %>
</tr>
<%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.id}')",
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
- <%=h old_status.name %>
+ <%= old_status.name %>
</td>
<% for new_status in @statuses -%>
<% checked = workflows.detect {|w| w.old_status_id == old_status.id && w.new_status_id == new_status.id} %>
<td></td>
<% for status in @statuses %>
<td style="width:<%= 75 / @statuses.size %>%;">
- <%=h status.name %>
+ <%= status.name %>
</td>
<% end %>
</tr>
<% @fields.each do |field, name| %>
<tr class="<%= cycle("odd", "even") %>">
<td class="name">
- <%=h name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %>
+ <%= name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %>
</td>
<% for status in @statuses -%>
<td class="<%= @permissions[status.id][field] %>">
<% @custom_fields.each do |field| %>
<tr class="<%= cycle("odd", "even") %>">
<td class="name">
- <%=h field.name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %>
+ <%= field.name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %>
</td>
<% for status in @statuses -%>
<td class="<%= @permissions[status.id][field.id.to_s] %>">