home » zplus/clif.git
Author zPlus <zplus@peers.community> 2022-07-31 05:15:24
Committer zPlus <zplus@peers.community> 2022-07-31 05:15:24
Commit eae469c (patch)
Tree 3519a80
Parent(s)

Rename README page to Overview. The README page shows more than the README file, so it's been renamed to a more general "Overview".


commits diff: a0eb47e..eae469c
4 files changed, 9 insertions, 9 deletionsdownload


Diffstat
-rw-r--r-- templates/explore.html 2
-rw-r--r-- templates/repository/overview.html 2
-rw-r--r-- templates/repository/repository.html 6
-rw-r--r-- web.py 8

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+1/-1 M   templates/explore.html
index ad06a6a..03ea698
old size: 944B - new size: 946B
@@ -19,7 +19,7 @@
19 19 <a href="{{ url('threads', repository=repository['path'][:-10]) }}">{{ repository['path'][:-4] }}</a>
20 20 {% else %}
21 21 <span title="Repository">R</span>&nbsp;&nbsp;
22 - <a href="{{ url('readme', repository=repository['path'][:-4]) }}">{{ repository['path'] }}</a>
22 + <a href="{{ url('overview', repository=repository['path'][:-4]) }}">{{ repository['path'] }}</a>
23 23 {% endif %}
24 24 </div>
25 25 <div>

+1/-1 R   templates/repository/readme.html -> templates/repository/overview.html
index e064189..04a00de
old size: 1K - new size: 1K
@@ -1,6 +1,6 @@
1 1 {% extends "repository/repository.html" %}
2 2
3 - {% block menu_readme_class %}selected{% endblock %}
3 + {% block menu_overview_class %}selected{% endblock %}
4 4
5 5 {% block content %}
6 6

+3/-3 M   templates/repository/repository.html
index 79abba3..0254ac2
old size: 834B - new size: 840B
@@ -8,9 +8,9 @@
8 8 {% block context %}
9 9 <ul class="menu">
10 10 <a
11 - href="{{ url('readme', repository=repository[:-4]) }}"
12 - class="{% block menu_readme_class %}{% endblock %}"
13 - >README</a>
11 + href="{{ url('overview', repository=repository[:-4]) }}"
12 + class="{% block menu_overview_class %}{% endblock %}"
13 + >Overview</a>
14 14
15 15 <a
16 16 href="{{ url('refs', repository=repository[:-4]) }}"

+4/-4 M   web.py
index 20b89f9..93c628a
old size: 23K - new size: 23K
@@ -203,10 +203,10 @@ def explore():
203 203
204 204 return template('explore.html', repositories=repositories)
205 205
206 - @bottle.get('/<repository:path>.git', name='readme')
207 - def readme(repository):
206 + @bottle.get('/<repository:path>.git', name='overview')
207 + def overview(repository):
208 208 """
209 - Show README of the repository.
209 + Show README and other info about the repository.
210 210
211 211 :param repository: Match repository name ending with ".git"
212 212 """
@@ -256,7 +256,7 @@ def readme(repository):
256 256 except:
257 257 description = ''
258 258
259 - return template('repository/readme.html',
259 + return template('repository/overview.html',
260 260 readme=readme,
261 261 repository=repository,
262 262 repository_size=human_size(repo_size),