Commit 3f64ee63 authored by BERJON Matthieu's avatar BERJON Matthieu

Move of header and footer in partials folder

To respect the good practices, I moved the header and footer in the
`partials` folder that will host all partial helpers to make the
templates.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent 0abb18b1
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div>
{#
{% comment %}
# function generating a button in the navigation bar, with:
# - a glyphicon and a tooltip (in devices given by 'hide')
# - a glyphicon and a text (in other configuration)
......@@ -16,38 +16,24 @@
")
end
end
#}
{% endcomment %}
<ul class="nav navbar-nav">
<li class="hidden-md hidden-sm hidden-xs">
<a class="navbar-brand brand" href="/">A||GO</a>
</li>
<li>
<%= link_to nav_button("glyphicon-cloud", "Apps", ["xs"]), apps_path %>
</li>
<% if user_signed_in? %>
<li>
<%= link_to nav_button("glyphicon-tasks", "My Jobs", ["xs"]), jobs_path %>
</li>
<% end %>
<% if user_signed_in? && User.valid_email(current_user.email) %> <!-- ajout d'app que pour inria/irisa -->
<li>
<%= link_to nav_button("glyphicon-cloud-upload", "Add an app", ["xs", "sm"]), new_webapp_path %>
</li>
<li>
<%= link_to nav_button("glyphicon-stats", "My apps", ["xs"]), show_apps_user_path %>
</li>
<li>
<%= link_to nav_button("glyphicon-save", "My datasets", ["xs", "sm", "md"]), new_dataset_path %>
</li>
<% if current_user.admin? %>
<li>
<%= link_to nav_button("glyphicon-eye-open", "Admin", ["xs", "sm", "md"]), admin_dashboard_path %>
</li>
<% end %>
<% end %>
<li>
<a href="/documentation/about"><%= nav_button "glyphicon-info-sign", "Doc", ["xs", "sm"] %></a>
</li>
<li class="{% if active_tab == 'apps' %} active{% endif %}"><a href="#">apps</a></li>
<li class="{% if active_tab == 'docs' %} active{% endif %}"><a href="#">docs</a></li>
{% if user.is_authenticated %}
<li class="{% if active_tab == 'jobs' %} active{% endif %}"><a href="#">my jobs</a></li>
{# The menu below should appears only for specific users who have the right to create new app-> hence irisa/inria members #}
<li class="{% if active_tab == 'add-app' %} active{% endif %}"><a href="#">add apps</a></li>
<li class="{% if active_tab == 'my-apps' %} active{% endif %}"><a href="#">my apps</a></li>
{% if user.is_admin %}
<li class="{% if active_tab == 'dashboard' %} active{% endif %}"><a href="#">dashboard</a></li>
{% endif %}
{% endif %}
<li class="{% if active_tab == 'my-apps' %} active{% endif %}"><a href="#">my apps</a></li>
<% if user_signed_in? %>
<li class="dropdown">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment