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 deletions
—
download
Diffstat
Diff options
+1/-1
M templates/explore.html
19
|
19
|
|
<a href="{{ url('threads', repository=repository['path'][:-10]) }}">{{ repository['path'][:-4] }}</a>
|
20
|
20
|
|
{% else %}
|
21
|
21
|
|
<span title="Repository">R</span>
|
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
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
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
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
|
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),
|