aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboards/index.html.erb
blob: eca8850357d69384afc5cbbd06d51fc7cbd47341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div class="page admin_page">
  <ul style="float: right" class="horizontal">
    <li class="marginleft10">
      <i class="icon-plus"></i>
      <%= link_to message('create'), {:action => :create_form, :resource => (@resource.id if @resource)}, :id => "create-link-dashboard", :class => 'open-modal link-action' %>
    </li>
  </ul>

  <h1><%= message(@global ? 'dashboard.my_global_dashboards' : 'dashboard.my_project_dashboards') -%></h1>
  <%= render_partial :partial => 'my_dashboards', :locals => { :is_admin => is_admin? } %>

  <h1><%= message('dashboard.available_dashboards') -%></h1>
  <%= render_partial :partial => 'available_dashboards', :locals => { :is_admin => is_admin? } %>
</div>

<% if params[:highlight] %>
<script type="text/javascript">
  new Effect.Highlight('dashboard-<%= h params[:highlight] -%>', {duration: 2, startcolor: '#cae3f2'});
</script>
<% end %>