-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
247 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,23 @@ | ||
body { | ||
padding-top: 60px; | ||
padding-top: 70px; | ||
} | ||
|
||
/* override Bootstrap 3 navbar collapse for medium screen sizes */ | ||
@media (max-width: 1200px) { | ||
.navbar-header { | ||
float: none; | ||
} | ||
|
||
.navbar-left,.navbar-right { | ||
float: none !important; | ||
} | ||
|
||
.navbar-toggle { | ||
display: block; | ||
} | ||
|
||
.navbar-collapse { | ||
border-top: 1px solid transparent; | ||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); | ||
} | ||
|
||
.navbar-fixed-top { | ||
top: 0; | ||
border-width: 0 0 1px; | ||
} | ||
|
||
.navbar-collapse.collapse { | ||
display: none !important; | ||
} | ||
|
||
.navbar-nav { | ||
float: none !important; | ||
margin-top: 7.5px; | ||
} | ||
.login-links { | ||
color: rgba(0,0,0,.7); | ||
text-decoration: none; | ||
} | ||
|
||
.navbar-nav > li { | ||
float: none; | ||
} | ||
.login-links:visited { | ||
color: rgba(0,0,0,.7); | ||
text-decoration: none; | ||
} | ||
|
||
.navbar-nav > li > a { | ||
padding-top: 10px; | ||
padding-bottom: 10px; | ||
} | ||
.login-links:hover { | ||
color: rgba(0,0,0,.7); | ||
text-decoration: underline; | ||
} | ||
|
||
.collapse.in{ | ||
display:block !important; | ||
} | ||
.login-links:active { | ||
color: rgba(0,0,0,.7); | ||
text-decoration: underline; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,36 @@ | ||
<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> | ||
<div class="container-fluid"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="/">MapKnitter</a> | ||
</div> | ||
<nav class="navbar fixed-top navbar-expand-lg navbar-light bg-light"> | ||
<a class="navbar-brand" href="/">MapKnitter</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#header-navbar-collapse" aria-controls="header-navbar-collapse" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
|
||
<div class="collapse navbar-collapse" id="navbar-collapse"> | ||
<form action="/search" method='get' class="navbar-form navbar-left" id="nav_search_form"> | ||
<div class="collapse navbar-collapse" id="header-navbar-collapse"> | ||
<ul class="navbar-nav"> | ||
<form action="/search" method='get' class="navbar-form navbar-left"> | ||
<div class="input-group"> | ||
<input class="form-control mr-sm-2" style="min-width: 280px;" type="text" id="search-input" name="q" value='<%= params[:id] if params[:action] == "search" %>' placeholder="Search maps"/> | ||
<span class="input-group-btn"> | ||
<button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button> | ||
<input class="form-control" id="search-input" style="min-width: 280px;" type="text" name='q' placeholder="Search maps" value='<%= params[:id] if params[:action] == "search" %>'> | ||
<span class="input-group-append"> | ||
<button class="btn btn-outline-secondary" type="submit"><i class="fa fa-search"></i></button> | ||
</span> | ||
</div> | ||
</form> | ||
<ul class="nav navbar-nav"> | ||
<li><a href="//publiclab.org/wiki/mapknitter" target="_blank">Getting Started</a></li> | ||
<li><a href="//publiclab.org/wiki/balloon-mapping" target="_blank">Balloon Mapping</a></li> | ||
<li><a href="//store.publiclab.org/products/balloon-mapping-kit" target="_blank">Aerial Mapping Kits</a></li> | ||
<li><a href="//publiclab.org/lists" target="_blank">Mailing Lists</a></li> | ||
</ul> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<%= render :partial => "layouts/login" %> | ||
</ul> | ||
</div> | ||
</ul> | ||
<ul class="navbar-nav mr-auto"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="//publiclab.org/wiki/mapknitter" target="_blank">Getting Started</span></a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="//publiclab.org/wiki/balloon-mapping" target="_blank">Baloon Mapping</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="//store.publiclab.org/products/balloon-mapping-kit" target="_blank">Aerial Mapping Kits</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="//publiclab.org/lists" target="_blank">Mailing Lists</a> | ||
</li> | ||
</ul> | ||
<ul class="navbar-nav"> | ||
<%= render :partial => "layouts/login" %> | ||
</ul> | ||
</div> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<% if logged_in? %> | ||
<li class="dropdown"> | ||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" id="logout-menu"><%= current_user.login %></a> | ||
<ul class="dropdown-menu" role="menu" aria-labelled-by="logout-menu"> | ||
<div class="dropdown-header"> | ||
<% if current_user.role == 'admin'%> | ||
- logged as Admin %> | ||
<% end %> | ||
</div> | ||
<li><a href="//publiclab.org/profile/<%= current_user.login %>">Profile</a></li> | ||
<li><a href="/logout">Log out</a></li> | ||
</ul> | ||
<li class="nav-item dropdown"> | ||
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" id="logout-menu" aria-haspopup="true" aria-expanded="false"> | ||
<i class="fa fa-user"></i> <%= current_user.login %> | ||
</a> | ||
<div class="dropdown-menu login-form" aria-labelled-by="logout-menu"> | ||
<a href="//publiclab.org/profile/<%= current_user.login %>" class="dropdown-item">Profile</a> | ||
<a href="/logout" class="dropdown-item">Log out</a> | ||
<% if current_user.role == 'admin' %> | ||
<a href="#">Role: <b>Admin</b></a> | ||
<% end %> | ||
</div> | ||
</li> | ||
<% else %> | ||
<li class="dropdown"> | ||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" id="login-menu">Log In</a> | ||
<div class="dropdown-menu login-form" role="menu" aria-labelled-by="login-menu"> | ||
<li class="nav-item dropdown"> | ||
<a href="#" class="nav-link dropdown login-form" data-toggle="dropdown" id="login-menu" aria-haspopup="true" aria-expanded="false">Log In</a> | ||
<div class="dropdown-menu" aria-labelled-by="login-menu"> | ||
<%= render :partial => "layouts/login_form" %> | ||
</div> | ||
</li> | ||
<% end %> | ||
</li> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.