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 | 10 | image_tag url, size:"128x128" |
11 | 11 | else |
12 | 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 | 14 | end |
15 | 15 | end |
16 | 16 | end |
17 | 17 | \ No newline at end of file | ... | ... |
app/views/projects/show.html.erb
... | ... | @@ -18,7 +18,7 @@ |
18 | 18 | |
19 | 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 | 23 | <table class="table table-hover"> |
24 | 24 | <thead> | ... | ... |