This repository has been archived by the owner on Sep 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
project.html
99 lines (88 loc) · 2.57 KB
/
project.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{% extends "base.html" %}
{% block headtitle %}
{% if project %}
Contributing to {{ project.display_name|escape }}
{% else %}
Project not found - Contributing
{% endif %}
{% endblock %}
{% block title %}
{% if project %}
Contributing to <em>{{ project.display_name|escape }}</em>
{% else %}
Project not found
{% endif %}
{% endblock %}
{% block content %}
{% if project %}
{% if can_edit and not edit_mode %}
[<a href="?mode=edit">edit</a>]
{% endif %}
{% if edit_mode %}
<form method='POST' action='/s/editproject'>
<input type='hidden' name='project' value='{{project_key}}' />
{% endif %}
<table cellpadding='10' border='0'>
<tr>
<td align='right' class='f'>Project homepage:</td>
<td>
{% if edit_mode %}
<input name='home_page' value="{{ project.home_page|escape }}" size='40' />
{% else %}
{{ project.home_page|linkify }}
{% endif %}
</td>
</tr>
<tr>
<td align='right' class='f'><nobr>Code repository:</nobr></td>
<td>
{% if edit_mode %}
<input name='code_repo' value="{{ project.code_repo|escape }}" size='40' />
{% else %}
{{ project.code_repo|linkify }}
{% endif %}
</td>
</tr>
<tr>
<td align='right' class='f'><nobr>Bug Tracker:</nobr></td>
<td>
{% if edit_mode %}
<input name='bug_tracker' value="{{ project.bug_tracker|escape }}" size='40' />
{% else %}
{{ project.bug_tracker|linkify }}
{% endif %}
</td>
</tr>
<tr valign='top'>
<td align='right' class='f'>How to submit patches:</td>
<td>
{% if edit_mode %}
<textarea name='how_to' rows='10' cols='40'>{{ project.how_to|escape }}</textarea>
{% else %}
{{ project.how_to|linkify }}
{% endif %}
</td>
</tr>
{% if edit_mode %}
<tr valign='bottom'>
<td align='right'></td>
<td><input type='submit' value="Save" /></td>
</tr>
{% else %}
<tr valign='bottom'>
<td align='right' class='f'><nobr>Maintainer of this</nobr><br/><nobr>metadata page:</nobr></td>
<td><a href="{{ project.owner.profile_page_url|escape }}">{{ project.owner.public_name|escape }}</a></td>
</tr>
<tr valign='bottom'>
<td align='right' class='f'>Last modified:</td>
<td>{{ project.last_edit_short }}</td>
</tr>
{% endif %}
</table>
{% if edit_mode %}
</form>
{% endif %}
{% else %}
Project doesn't exist. <a href='/s/create'>Create it</a>?
{% endif %}
{% endblock %}