From a09f323454d22ba731eb40a179c9bf549ff37cb4 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Tue, 7 Feb 2012 14:10:43 +0100 Subject: [PATCH] SONAR-3104 Improve rendering --- .../resources/org/sonar/l10n/core.properties | 2 +- .../WEB-INF/app/views/project/history.html.erb | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties index 4a1e940aca1..e20cd46b711 100644 --- a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -869,7 +869,7 @@ project_history.version_updated=Version was updated to "{0}" for current project project_history.version_created=Version "{0}" was created for current project and all its sub-projects. project_history.version_removed=Version "{0}" was removed from current project and all its sub-projects. project_history.version_already_exists=Version "{0}" already exists. -project_history.edit_event=Edit +project_history.rename_event=Rename project_history.create_event=Create project_history.remove_event=Remove project_history.event_updated=Event was successfully updated. diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/project/history.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/project/history.html.erb index 30a4093d662..bf6862c9e83 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/project/history.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/project/history.html.erb @@ -57,15 +57,21 @@ + <% if version_event %> + <% else %> + + <% end %> <% end %> - -- 2.39.5
<%= version_event.name if version_event -%> - <%= version_event ? message('project_history.rename_version') : message('project_history.create_version') -%> + <%= message('project_history.rename_version') -%> <% if version_event && !snapshot.islast? %> <%= link_to( message('project_history.remove_version'), { :action => 'delete_version', :sid => snapshot.id}, :confirm => message('project_history.do_you_want_to_remove_version', :params => version_event.name) ) -%> <% end %> + <%= message('project_history.create_version') -%> +
<%= event.name -%> - <%= message('project_history.edit_event') -%> + <%= message('project_history.rename_event') -%> <%= link_to( message('project_history.remove_version'), { :action => 'delete_event', :id => event.id}, :confirm => message('project_history.do_you_want_to_remove_version', :params => event.name) ) -%> @@ -107,8 +113,10 @@
- <%= message('project_history.create_event') -%> + + + <%= message('project_history.create_event') -%> +