aboutsummaryrefslogtreecommitdiff
path: root/src/views/navbar.ecr
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/navbar.ecr')
-rw-r--r--src/views/navbar.ecr31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/views/navbar.ecr b/src/views/navbar.ecr
new file mode 100644
index 0000000..4164b90
--- /dev/null
+++ b/src/views/navbar.ecr
@@ -0,0 +1,31 @@
+<div
+ class='navbar navbar-inverse navbar-static-top'
+ role='navigation'
+>
+ <div class='container-fluid'>
+ <div class='navbar-header'>
+ <a
+ href='<%= h(@link) %>'
+ class='navbar-brand'
+ title='<%= h(@text) %>'
+ >
+ <i class='fa fa-bomb'></i>
+ <%= h(@name) %>
+ </a><!-- navbar-brand -->
+ </div><!-- navbar-default -->
+
+ <% if @show_logout %>
+ <ul class='nav navbar-nav navbar-right'>
+ <li>
+ <a
+ href='logout.html'
+ title='Log out.'
+ >
+ <i class='fa fa-power-off'></i>
+ Log Out
+ </a>
+ </li>
+ </ul><!-- nav -->
+ <% end %>
+ </div><!-- container-fluid -->
+</div><!-- navbar -->