Skip to content

Commit

Permalink
Lien "modifier la page sur GitHub"
Browse files Browse the repository at this point in the history
  • Loading branch information
c-geek committed Mar 31, 2017
1 parent 2218b9d commit a05289e
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
35 changes: 34 additions & 1 deletion content/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,37 @@ img.credits {

.highlight pre {
border: none;
}
}

#sidebar #github {
margin-left: 3px;
margin-right: 3px;
padding-left: 3px;
padding-right: 3px;
background-color: white;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}

#github h5 {
margin: 0;
}

#github a {
color: white;
font-weight: bold;
width: 100%;
font-size: 14px;
}

#github .list-group-item {
text-align: center;
padding-top: 0px;
padding-left: 5px;
padding-right: 5px;
}

#sidebar section > ul {
margin-bottom: 0px;
}
25 changes: 25 additions & 0 deletions pelican-themes/pelican-bootstrap3/templates/includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,30 @@ <h5>{{ _('Next article') }}</h5>
{% include 'includes/twitter_timeline.html' %}
{% include 'includes/links.html' %}
{% include 'includes/sidebar-images.html' %}

{% if page %}
<li class="list-group-item" id="github">
<ul class="list-group">
<li class="list-group-item"><h5>Vous voyez une erreur ?</h5></li>
<li class="list-group-item">
<a class="btn btn-info github" target="_blank" href="https://github.com/duniter/website/edit/master/content/pages/{{ page.path }}.md">
<i class="fa fa-random"></i> Modifiez la page sur GitHub
</a>
</li>
</ul>
</li>
{% endif %}
{% if article %}
<li class="list-group-item" id="github">
<ul class="list-group">
<li class="list-group-item"><h5>Vous voyez une erreur ?</h5></li>
<li class="list-group-item">
<a class="btn btn-info github" target="_blank" href="https://github.com/duniter/website/edit/master/content/{{ article.date.strftime('%Y-%m-%d') ~ '-' ~ article.slug }}.md">
<i class="fa fa-random"></i> Modifiez l'article sur GitHub
</a>
</li>
</ul>
</li>
{% endif %}
</ul>
</section>

0 comments on commit a05289e

Please sign in to comment.