From 8f0074d7657f2a12ef4c0a086814b19076d837ca Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Mon, 30 Jan 2012 15:38:17 +0100 Subject: [PATCH] SONAR-3104 Improve the usability of the project 'History' page - Display create/edit/delete action links only when mouse is over the line --- .../app/views/project/history.html.erb | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) 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 a35a0af57ce..29a5de3a74c 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 @@ -1,4 +1,21 @@ <% if @snapshot.root? %> + +

<%= message('project_history.page_title') -%>


@@ -27,7 +44,7 @@ profile_event = snapshot.event(EventCategory::KEY_PROFILE) other_events = snapshot.events.select{|e| e.category!=EventCategory::KEY_VERSION && e.category!=EventCategory::KEY_ALERT && e.category!=EventCategory::KEY_PROFILE} %> - + <%= time.year unless time.year == current_year -%> @@ -41,7 +58,7 @@ - - <% end %> - -- 2.39.5
<%= version_event.name if version_event -%> + <%= version_event ? message('project_history.rename_version') : message('project_history.create_version') -%> <% if version_event && !snapshot.islast? %> <%= link_to( message('project_history.remove_version'), @@ -68,7 +85,7 @@ <% other_events.each do |event| %>
<%= event.name -%> + <%= message('project_history.edit_event') -%> <%= link_to( message('project_history.remove_version'), { :action => 'delete_event', :id => event.id}, @@ -87,7 +104,7 @@
+ <%= message('project_history.create_event') -%>