Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1426892
_nav.html.erb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 17, 12:46 PM
Size
2 KB
Mime Type
text/plain
Expires
Mon, Jan 19, 12:46 PM (16 h, 59 m)
Engine
blob
Format
Raw Data
Handle
326266
Attached To
rARCHIVING archiving
_nav.html.erb
View Options
<!-- Fixed navbar -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="logo">
<%=
link_to
root_path
do
%>
<p><b>GRNET NOC</b></p>
<p>Archiving</p>
<%
end
%>
</li>
<%
if
current_user
%>
<%=
content_tag
(
:li
,
active_class
(
clients_path
,
true
))
do
%>
<%=
link_to
'Clients'
,
clients_path
%>
<%
end
%>
<li>
<%=
link_to
current_user
.
username
,
'#'
%>
</li>
<%
end
%>
</ul>
<%
if
current_user
%>
<ul class="nav navbar-nav navbar-right">
<li>
<%=
link_to
logout_path
do
%>
<label class="glyphicon glyphicon-log-out"></label>
Logout
<%
end
%>
</li>
</ul>
<%
end
%>
<%
if
current_user
.
try
(
:admin?
)
%>
<ul class="nav navbar-nav navbar-right">
<%=
content_tag
(
:li
,
active_class
(
admin_path
))
do
%>
<%=
link_to
'Admin'
,
admin_path
%>
<%
end
%>
<%=
content_tag
(
:li
,
active_class
(
admin_clients_path
,
true
))
do
%>
<%=
link_to
'Clients'
,
admin_clients_path
%>
<%
end
%>
<%=
content_tag
(
:li
,
active_class
(
unverified_admin_hosts_path
,
true
))
do
%>
<%=
link_to
'Hosts'
,
unverified_admin_hosts_path
%>
<%
end
%>
<%=
content_tag
(
:li
,
active_class
(
admin_users_path
))
do
%>
<%=
link_to
'Users'
,
admin_users_path
%>
<%
end
%>
<%=
content_tag
(
:li
,
active_class
(
admin_settings_path
))
do
%>
<%=
link_to
'Settings'
,
admin_settings_path
%>
<%
end
%>
</ul>
<%
end
%>
</div><!--/.nav-collapse -->
</div>
</nav>
Event Timeline
Log In to Comment