/
top_nav_alt.haml
54 lines (53 loc) · 1.51 KB
/
top_nav_alt.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
%nav.top-bar
%ul.title-area
/ Title Area
%li.name
%h1.subheader
%a{:href => "/"}
%i.icon-camera-retro.icon-large
= page_title
/ Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone
%li.toggle-topbar.menu-icon
%a{:href => "/"}
%span Menu
%section.top-bar-section
/ Left Nav Section
%ul.left
%li
/ Right Nav Section
%ul.right
%li.divider.hide-for-small
-if admin?
%li
%a{:href => "/upload"}
%i.icon-upload.icon-large
Upload
%li.divider
%li.divider.show-for-small
%li
-if admin?
%a{:href => '/logout'}
%i.icon-lock.icon-large
Logout
-else
%a{:href => '#', "data-reveal-id" => "login"}
%i.icon-unlock.icon-large
Login
#login.reveal-modal.medium
%form(action="/login" method="post")
%fieldset
%legend Login
%row
.large-12.columns
%label Username:
%input{:type => :text, :name => :username}
.large-12.columns
%label Password:
%input{:type => :password, :name => :password}
.large-12.columns
.row
.large-6.small-6.columns
%input.small.button.success.radius.left{:type => "submit", :value => "Login"}
.large-6.small-6.columns
%a.small.button.alert.radius.right{:href => "/"} Cancel
%a.close-reveal-modal ×