edit page link does not belong in footer appearing like a nav link. should be associated with page content. updated

This commit is contained in:
captainill 2015-11-09 15:39:34 -08:00
parent 17b3910152
commit b79afeb349
3 changed files with 10 additions and 3 deletions

View File

@ -81,3 +81,10 @@ pre {
.center { .center {
text-align: center; text-align: center;
} }
.edit-this-page{
padding-top: 48px;
a{
text-transform: uppercase;
}
}

View File

@ -8,9 +8,6 @@
<li><a href="/docs/index.html">Docs</a></li> <li><a href="/docs/index.html">Docs</a></li>
<li><a href="/community.html">Community</a></li> <li><a href="/community.html">Community</a></li>
<li><a href="http://demo.consul.io/">Demo</a></li> <li><a href="http://demo.consul.io/">Demo</a></li>
<% if current_page.url != '/' %>
<li class="edit"><a href="<%= github_url :current_page %>">Edit this page</a></li>
<% end %>
</ul> </ul>
<ul class="external-links white nav navbar-nav"> <ul class="external-links white nav navbar-nav">
<li class="first download"> <li class="first download">

View File

@ -6,6 +6,9 @@
<div id="main-content" class="col-md-8" role="main"> <div id="main-content" class="col-md-8" role="main">
<div class="bs-docs-section"> <div class="bs-docs-section">
<%= yield %> <%= yield %>
<% if current_page.url != '/' %>
<div class="edit-this-page"><a href="<%= github_url :current_page %>">Edit this page</a></div>
<% end %>
</div> </div>
</div> </div>
</div> </div>