Commit a15a316b1f7a78ba1479c3ba405cf536b119b8ac
1 parent
50eb4065
Exists in
colab
and in
4 other branches
New repository button translation fixed
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/helpers/projects_helper.rb
@@ -10,7 +10,7 @@ module ProjectsHelper | @@ -10,7 +10,7 @@ module ProjectsHelper | ||
10 | image_tag url, size:"128x128" | 10 | image_tag url, size:"128x128" |
11 | else | 11 | else |
12 | "<center><i class='fa fa-file-image-o fa-5x'></i></center><br /> | 12 | "<center><i class='fa fa-file-image-o fa-5x'></i></center><br /> |
13 | - #{t('no_image_available')}" | 13 | + #{t('no_image_available')}".html_safe |
14 | end | 14 | end |
15 | end | 15 | end |
16 | end | 16 | end |
17 | \ No newline at end of file | 17 | \ No newline at end of file |
app/views/projects/show.html.erb
@@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
18 | 18 | ||
19 | <h2><%= Repository.model_name.human(count: 2) %></h2> | 19 | <h2><%= Repository.model_name.human(count: 2) %></h2> |
20 | 20 | ||
21 | -<% if project_owner? @project.id %><%= link_to t('new_repository'), new_project_repository_path(@project,), class: 'btn btn-primary' %><% end %> | 21 | +<% if project_owner? @project.id %><%= link_to "#{t('new.male')} #{Repository.model_name.human}", new_project_repository_path(@project,), class: 'btn btn-primary' %><% end %> |
22 | 22 | ||
23 | <table class="table table-hover"> | 23 | <table class="table table-hover"> |
24 | <thead> | 24 | <thead> |