Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
ffbs-website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ffbs
ffbs-website
Commits
4e24616b
Commit
4e24616b
authored
5 years ago
by
chrissi^
Browse files
Options
Downloads
Patches
Plain Diff
template: Add Links to our Gitlab
Signed-off-by:
Chris Fiege
<
chris@tinyhost.de
>
parent
a796cda8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
flamingo/plugins/git.py
+18
-0
18 additions, 0 deletions
flamingo/plugins/git.py
flamingo/settings.py
+1
-0
1 addition, 0 deletions
flamingo/settings.py
flamingo/theme/templates/base.html
+7
-1
7 additions, 1 deletion
flamingo/theme/templates/base.html
with
26 additions
and
1 deletion
flamingo/plugins/git.py
0 → 100644
+
18
−
0
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
This diff is collapsed.
Click to expand it.
flamingo/settings.py
+
1
−
0
View file @
4e24616b
...
@@ -7,6 +7,7 @@ PLUGINS = [
...
@@ -7,6 +7,7 @@ PLUGINS = [
'
flamingo.plugins.rstFile
'
,
'
flamingo.plugins.rstFile
'
,
'
flamingo.plugins.rstPygments
'
,
'
flamingo.plugins.rstPygments
'
,
'
plugins/title.py::Title
'
,
'
plugins/title.py::Title
'
,
'
plugins/git.py::Git
'
,
]
]
LAYERS
=
[
LAYERS
=
[
...
...
This diff is collapsed.
Click to expand it.
flamingo/theme/templates/base.html
+
7
−
1
View file @
4e24616b
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
</div>
</div>
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
<ul
class=
"nav nav-pills nav-stacked"
>
<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>
<li><a
href=
"http://lists.freifunk.net/mailman/listinfo/braunschweig-freifunk.net"
>
Mailinglist
</a></li>
</ul>
</ul>
</div>
</div>
...
@@ -126,6 +126,12 @@
...
@@ -126,6 +126,12 @@
</div>
</div>
</div>
</div>
<hr>
<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>
<p>
Unterstützt durch
<a
href=
"https://freifunk-rheinland.net/"
>
Freifunk Rheinland
</a>
Unterstützt durch
<a
href=
"https://freifunk-rheinland.net/"
>
Freifunk Rheinland
</a>
<img
src=
"/assets/images/ffrhein_logo_claim_line_4c_tiny.svg"
></img>
<img
src=
"/assets/images/ffrhein_logo_claim_line_4c_tiny.svg"
></img>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment