Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffbs-website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ffbs
ffbs-website
Commits
4e24616b
Commit
4e24616b
authored
Apr 28, 2019
by
chrissi^
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
template: Add Links to our Gitlab
Signed-off-by:
Chris Fiege
<
chris@tinyhost.de
>
parent
a796cda8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
flamingo/plugins/git.py
flamingo/plugins/git.py
+18
-0
flamingo/settings.py
flamingo/settings.py
+1
-0
flamingo/theme/templates/base.html
flamingo/theme/templates/base.html
+7
-1
No files found.
flamingo/plugins/git.py
0 → 100644
View file @
4e24616b
import
subprocess
import
os
class
Git
:
def
contents_parsed
(
self
,
context
):
state
=
subprocess
.
getoutput
([
"git log -1 --pretty=format:'%H %aI'"
])
for
content
in
context
.
contents
:
content
[
"git_state"
]
=
state
path
=
os
.
path
.
join
(
"content"
,
content
[
"path"
])
updated
=
subprocess
.
getoutput
([
"git log -1 --pretty=format:'%aI' {}"
.
format
(
path
)])
content
[
"git_update"
]
=
updated
branch
=
subprocess
.
getoutput
([
"git branch | grep \* | cut -d ' ' -f2"
])
if
"HEAD"
in
branch
:
branch
=
"master"
content
[
"git_branch"
]
=
branch
flamingo/settings.py
View file @
4e24616b
...
...
@@ -7,6 +7,7 @@ PLUGINS = [
'flamingo.plugins.rstFile'
,
'flamingo.plugins.rstPygments'
,
'plugins/title.py::Title'
,
'plugins/git.py::Git'
,
]
LAYERS
=
[
...
...
flamingo/theme/templates/base.html
View file @
4e24616b
...
...
@@ -107,7 +107,7 @@
</div>
<div
class=
"col-md-3"
>
<ul
class=
"nav nav-pills nav-stacked"
>
<li><a
href=
"https://
wiki.freifunk-bs.de/"
>
Wiki
</a></li>
<li><a
href=
"https://
firmware.freifunk-bs.de"
>
Firmware
</a></li>
<li><a
href=
"http://lists.freifunk.net/mailman/listinfo/braunschweig-freifunk.net"
>
Mailinglist
</a></li>
</ul>
</div>
...
...
@@ -126,6 +126,12 @@
</div>
</div>
<hr>
<p>
Diese Seite im Gitlab:
<a
href=
"https://gitli.stratum0.org/ffbs/ffbs-website/blob/{{ content.git_branch }}/flamingo/content/{{ content.path }}"
>
Quelltext ansehen
</a>
|
<a
href=
"https://gitli.stratum0.org/ffbs/ffbs-website/commits/{{ content.git_branch }}/flamingo/content/{{content.path }}"
>
Versionsgeschichte
</a>
|
<a
href=
"https://gitli.stratum0.org/ffbs/ffbs-website/edit/{{ content.git_branch }}/flamingo/content/{{ content.path}}"
>
Bearbeiten
</a>
</p>
<p>
Unterstützt durch
<a
href=
"https://freifunk-rheinland.net/"
>
Freifunk Rheinland
</a>
<img
src=
"/assets/images/ffrhein_logo_claim_line_4c_tiny.svg"
></img>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment