summaryrefslogtreecommitdiffstats
path: root/app/views/repositories
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-02-23 10:11:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-02-23 10:11:08 +0000
commitb778c51e9049ca2c0d745a699db6d93d53b71175 (patch)
tree8608956d05f884b557ea3451bead74a4dc9441f0 /app/views/repositories
parentec201b08b3cfd1e115704abdbd7bc541a3651fe1 (diff)
downloadredmine-b778c51e9049ca2c0d745a699db6d93d53b71175.tar.gz
redmine-b778c51e9049ca2c0d745a699db6d93d53b71175.zip
Removed unneeded #h calls in views.
git-svn-id: http://svn.redmine.org/redmine/trunk@14043 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/repositories')
-rw-r--r--app/views/repositories/_breadcrumbs.html.erb8
-rw-r--r--app/views/repositories/_dir_list_content.html.erb4
-rw-r--r--app/views/repositories/committers.html.erb2
-rw-r--r--app/views/repositories/revision.html.erb2
-rw-r--r--app/views/repositories/show.html.erb2
5 files changed, 9 insertions, 9 deletions
diff --git a/app/views/repositories/_breadcrumbs.html.erb b/app/views/repositories/_breadcrumbs.html.erb
index 20c2040e5..eb115f9ad 100644
--- a/app/views/repositories/_breadcrumbs.html.erb
+++ b/app/views/repositories/_breadcrumbs.html.erb
@@ -1,4 +1,4 @@
-<%= 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) %>
@@ -13,11 +13,11 @@ dirs.each do |dir|
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 %>
@@ -26,6 +26,6 @@ dirs.each do |dir|
# 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)) -%>
diff --git a/app/views/repositories/_dir_list_content.html.erb b/app/views/repositories/_dir_list_content.html.erb
index 21f205ad7..9721fa66c 100644
--- a/app/views/repositories/_dir_list_content.html.erb
+++ b/app/views/repositories/_dir_list_content.html.erb
@@ -3,7 +3,7 @@
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? %>
@@ -16,7 +16,7 @@
:depth => (depth + 1),
:parent_id => tr_id)) %>');">&nbsp;</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>
diff --git a/app/views/repositories/committers.html.erb b/app/views/repositories/committers.html.erb
index d9c2d5d96..b942e4b82 100644
--- a/app/views/repositories/committers.html.erb
+++ b/app/views/repositories/committers.html.erb
@@ -18,7 +18,7 @@
<% 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}][]",
diff --git a/app/views/repositories/revision.html.erb b/app/views/repositories/revision.html.erb
index 64dfd75ea..13edf07cb 100644
--- a/app/views/repositories/revision.html.erb
+++ b/app/views/repositories/revision.html.erb
@@ -32,7 +32,7 @@
<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? %>
diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb
index fcf0a0e0d..b89bbf9fe 100644
--- a/app/views/repositories/show.html.erb
+++ b/app/views/repositories/show.html.erb
@@ -61,7 +61,7 @@
<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' : '')