layout.login=Log in
layout.logout=Log out
layout.measures=Measures
-layout.configuration=Configuration
+layout.administration=Administration
layout.print=Print
layout.permalink=Permalink
layout.sonar.slogan=Embrace Quality
layout.evaluation=Embedded database should be used for evaluation purpose only
layout.ie6_warn=Your web browser is outdated. This website may not display correctly.
layout.dashboards=Dashboards
-layout.tools=Tools
+layout.reviews=Reviews
layout.user_panel.my_profile=My profile
layout.user_panel.recent_history.title=Recent history
layout.user_panel.me=Me
layout.user_panel.anonymous_user=Anonymous
-sidebar.tools=Tools
-sidebar.tools.comparison=Comparison
-sidebar.tools.dependency=Dependency
-sidebar.tools.reviews=Reviews
sidebar.project_settings=Configuration
sidebar.security=Security
sidebar.system=System
+sidebar.tools=Tools
#------------------------------------------------------------------------------
unless @snapshots.empty?
@permalink = url_for :controller => 'comparison', :action => 'index', :sids => @snapshots.map {|s| s.id.to_s}.join(','), :metrics => @metrics.map {|m| m.key}.join(',')
end
- add_breadcrumbs message('sidebar.tools'), {:name => message('sidebar.tools.comparison'), :url => {:controller => 'comparison', :action => 'index'}}
+ add_breadcrumbs message('sidebar.tools'), {:name => message('comparison.page'), :url => {:controller => 'comparison', :action => 'index'}}
end
def versions
end
- add_breadcrumbs message('sidebar.tools'), {:name => message('sidebar.tools.dependency'), :url => {:controller => 'dependencies', :action => 'index'}}
+ add_breadcrumbs message('sidebar.tools'), {:name => message('dependencies.page'), :url => {:controller => 'dependencies', :action => 'index'}}
end
private
def index
init_params()
search_reviews()
-
- add_breadcrumbs message('sidebar.tools'), {:name => message('sidebar.tools.reviews'), :url => {:controller => 'reviews', :action => 'index'}}
end
# Used for the "OLD" permalink "http://localhost:9000/reviews/view/1"
<a href="<%= ApplicationController.root_context -%>/measures"><%= message('layout.measures') -%></a>
</li>
<li>
- <a href="<%= ApplicationController.root_context -%>/profiles"><%= message('quality_profiles.page') -%></a>
+ <a href="<%= ApplicationController.root_context -%>/reviews/index"><%= message('reviews.page') -%></a>
</li>
- <%= render 'layouts/tools' -%>
</ul>
</div>
<div id="nav">
<img src="<%= ApplicationController.root_context -%>/images/loading-small.gif" id="searchingResources" style="display:none">
</li>
<li>
- <a href="<%= ApplicationController.root_context -%>/settings/index"><img src="<%= ApplicationController.root_context -%>/images/actions.png" alt="<%= message('layout.configuration') -%>" title="<%= message('layout.configuration') -%>"/></a>
+ <a href="<%= ApplicationController.root_context -%>/settings/index"><img src="<%= ApplicationController.root_context -%>/images/actions.png" alt="<%= message('layout.administration') -%>" title="<%= message('layout.administration') -%>"/></a>
</li>
- <% unless logged_in? %>
+ <% if logged_in? %>
+ <%= render 'layouts/user_panel' -%>
+ <% else %>
<li><a href="<%= ApplicationController.root_context -%>/sessions/new?return_to=<%= u (request.request_uri) -%>"><%= message('layout.login') -%></a></li>
<% end %>
- <%= render 'layouts/user_panel' -%>
</ul>
</div>
<div id="searchResourcesResults" class="autocomplete" style="display:none"></div>
<li class="<%= 'active' if selected -%>">
<a href="<%= ApplicationController.root_context -%><%= page_url -%>"><%= message(page.getId() + '.page', :default => page.getTitle()) -%></a></li>
<% end %>
+
+ <li class="spacer"></li>
+ <li class="sidebar-title"><%= message('sidebar.tools') -%></li>
+
+ <li class="<%= 'active' if request.request_uri.include?('/profiles') -%>">
+ <a href="<%= ApplicationController.root_context -%>/profiles"><%= message('quality_profiles.page') -%></a></li>
+ <li class="<%= 'active' if request.request_uri.include?('/dependencies/index') -%>">
+ <a href="<%= ApplicationController.root_context -%>/dependencies/index"><%= message('dependencies.page') -%></a></li>
+ <li class="<%= 'active' if request.request_uri.include?('/comparison/index') -%>">
+ <a href="<%= ApplicationController.root_context -%>/comparison/index"><%= message('comparison.page') -%></a></li>
<% elsif selected_section==Navigation::SECTION_RESOURCE %>
<% ActiveDashboard.user_dashboards(current_user, false).each do |active_dashboard| %>
+++ /dev/null
-<li onmouseover="$j('#tools-menu').show();" onmouseout="$j('#tools-menu').hide();">
- <span class="link-more dropdown"><%= message('layout.tools') -%></span>
-
- <div id="tools-menu" class="dropdown-menu" style="display: none">
- <ul>
- <li><a href="<%= ApplicationController.root_context -%>/dependencies/index"><%= message('sidebar.tools.dependency') -%></a></li>
- <li><a href="<%= ApplicationController.root_context -%>/comparison/index"><%= message('sidebar.tools.comparison') -%></a></li>
- <li><a href="<%= ApplicationController.root_context -%>/reviews/index"><%= message('sidebar.tools.reviews') -%></a></li>
- </ul>
- </div>
-</li>
\ No newline at end of file