Skip to content

Commit

Permalink
Add github links to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromorgan committed May 26, 2016
1 parent c83b20f commit 666e5e4
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 5 deletions.
20 changes: 20 additions & 0 deletions _includes/github_links.html
@@ -0,0 +1,20 @@
{% if page.github %}
<div class="revel-github-bar">
<h6>GitHub Labels</h6>
<ul>
<li><b>Issues: </b>
{% for lbl in page.github.labels %}
<a href="https://github.com/revel/revel/labels/{{lbl}}" target="_revel_issues">{{lbl}}</a>
{% if forloop.rindex > 1 %}|{% endif %}
{% endfor %}
</li>
<li><b>Pull Requests: </b>
{% for lbl in page.github.labels %}
<a href="https://github.com/revel/revel/pulls?q=is%3Apr+is%3Aopen+label%3A{{lbl}}" target="_revel_issues">{{lbl}}</a>
{% if forloop.rindex > 1 %}|{% endif %}
{% endfor %}
</li>
</ul>
</div>
{% endif %}

3 changes: 2 additions & 1 deletion _layouts/manual.html
Expand Up @@ -119,7 +119,8 @@
<h1>{{ page.title }}</h1>
</div>
{{ content }}


{% include github_links.html %}

</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions _layouts/quickstart.html
Expand Up @@ -38,6 +38,8 @@
<h1>{{ page.title }}</h1>
</div>
{{ content }}


</div>
</div>

Expand Down
20 changes: 16 additions & 4 deletions css/revel.4.css
Expand Up @@ -154,11 +154,23 @@ ul ul, ul ol, ol ol, ol ul, ul {
position: relative;
}

/************************************************/
#disqus_thread {
margin-top: 30px;
margin-bottom: 30px;
.revel-github-bar {
font-family: monospace;
margin: 0px;
background-color: #efefef;

}
.revel-github-bar h6 {
font-family: monospace;
font-size: 16pt;
padding: 2px 4px;
border: 0;
border-top: 1px solid #bbbbbb;
border-right: 20px solid #bbbbbb;

}
/************************************************/

footer {
border-top: 1px solid #dddddd;
margin-top: 30px;
Expand Down
4 changes: 4 additions & 0 deletions manual/controllers.md
@@ -1,6 +1,10 @@
---
title: Controllers Overview
layout: manual
github:
labels:
- topic-controller

---

The [`revel.Controller`](https://godoc.org/github.com/revel/revel#Controller) is the context for
Expand Down
4 changes: 4 additions & 0 deletions manual/templates.md
@@ -1,6 +1,10 @@
---
title: Templates
layout: manual
github:
labels:
- topic-template
- topic-controller
---

Revel uses Go's built in [html/template](http://golang.org/pkg/html/template/) package. It
Expand Down

0 comments on commit 666e5e4

Please sign in to comment.