Actions
Feature #1184
closed[Patch] Add link to hudson server in sidebar
Feature #1184:
[Patch] Add link to hudson server in sidebar
Start date:
02/06/2013
Due date:
% Done:
100%
Estimated time:
Description
Here is a simple patch to add a link in the sidebar to the hudson server - this is particularly useful when there are no jobs yet and hence no other links to the server.
--- ./config/locales/en.yml.orig 2013-01-14 06:50:26.000000000 -0800
+++ ./config/locales/en.yml 2013-02-05 18:17:45.269236175 -0800
@@ -6,6 +6,7 @@
label_latest_build: Latest Build^M
label_job_list: Job List^M
label_settings: Settings^M
+ label_hudson_server: Server^M
label_url: URL^M
label_jobs: Jobs^M
label_build_history: Build History^M
--- ./app/views/hudson/_hudson_sidebar.html.erb.orig 2013-01-14 06:50:26.000000000 -0800
+++ ./app/views/hudson/_hudson_sidebar.html.erb 2013-02-05 18:15:42.915386783 -0800
@@ -1,3 +1,4 @@
<h3><%=l(:label_hudson)%></h3>
-<p><%=link_to_if_authorized l(:label_settings), {:controller => 'hudson_settings', :action => 'edit', :id => @project}%></p>
+<%=link_to_if_authorized l(:label_settings), {:controller => 'hudson_settings', :action => 'edit', :id => @project}%><br>
+<%=link_to l(:label_hudson_server), @hudson.settings.url%><br>
Actions