aboutsummaryrefslogtreecommitdiff
path: root/src/views/navbar.ecr
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-07-28 09:35:14 -0400
committerPaul Duncan <pabs@pablotron.org>2016-07-28 09:35:14 -0400
commita36c864bd86f59ed04d3c133cd1ad1fcdf61b9f7 (patch)
treef877eff1b1d5db8c6e9fe2b834ff1ff8e6f43eb6 /src/views/navbar.ecr
parentdfb1eb89909076b5d76ba27c1b5e558ea7914c5b (diff)
downloadguff-a36c864bd86f59ed04d3c133cd1ad1fcdf61b9f7.tar.bz2
guff-a36c864bd86f59ed04d3c133cd1ad1fcdf61b9f7.zip
refactor navbar and clean up logout page
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 -->