-
Notifications
You must be signed in to change notification settings - Fork 8
/
package_details.html
100 lines (83 loc) · 3.03 KB
/
package_details.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
100
{% extends "layout.html" %}
{% block link %}
<link href="{{ url_for('recent_feed', name=result.name) }}"
rel="alternate"
title="Recent Comments"
type="application/atom+xml">
{% endblock %}
{% block body %}
<h2>Want to use Python 3 for your next project ?</h2>
<h4 style="color: #243F00">Find out all the third party libraries supported by Python 3! You can
also submit feedback about its compatibility with Python 3.</h4>
<div>
<form action="{{ url_for('packages') }}" method=post>
<input onfocus="if(this.value == 'Search Distros') {this.value = ''}" style="opacity:0.4;font-size: 15pt" type=text name=pkgname size=20 value="Search Distros" />
<input style="font-size: 18pt" type=submit value="Search" />
<a style="text-decoration: underline" href="{{ url_for('packages') }}">Browse All</a>
</form>
</div>
<p>
</p>
<h2><a href="http://pypi.python.org/pypi/{{ result.name }}">{{ result.name }}</a>
<a href="{{ url_for('recent_feed', name=result.name) }}"
rel="alternate"
title="Recent Comments"
type="application/atom+xml"><img src="{{ url_for('.static', filename='feed-icon.png') }}" /></a>
</h2>
<dl>
<dt>Home Page</dt>
<dd><a href="{{ result.home_page }}">{{ result.home_page }}</a></dd>
<dt>Author(s)</dt>
<dd>{{ result.author }}</dd>
<dt>Summary</dt>
<dd>{{ result.summary }}</dd>
</dl>
<h3>Comments</h3>
{% for comment in comments %}
<p>
<img src="{{comment.email | gravatar}}"/> {{ comment.fullname }}
has {{ result.name }} {{ (comment.version) }} <span class="{{ get_status(comment.working)[0] }}">{{ get_status(comment.working)[1] }}</span>
on {{ comment.platform }} : {{ time_delta(comment.datetime) }} <br/>
<pre>
{{ comment.comment }}
</pre>
</p>
{% endfor %}
<h3>Add your comment</h3>
<form action="{{ url_for('packages_details', name=result.name) }}/add_comment" method=post>
Name
<input type=text name=fullname size=30 /> <br />
Email
<input type=text name=email size=30 /> <br />
<p>
Works for me
<input checked="checked" id="working" name="working" type="radio" value="true">
Yes
<input id="working" name="working" type="radio" value="false">
No
</p>
<p>
Platform
<select id="platform" name="platform">
<option value="GNU/Linux">GNU/Linux</option>
<option value="Windows">Windows</option>
<option value="Mac OSX">Mac OSX</option>
<option value="FreeBSD">FreeBSD</option>
<option value="OpenBSD">OpenBSD</option>
<option value="NetBSD">NetBSD</option>
<option value="Solaris">Solaris</option>
<option value="Other">Other</option>
</select>
</p>
Version
<input type=text name=version size=30 /> <br />
Comments (optional) <br/>
<textarea cols="60" id="comment_body" name="comment" rows="6"></textarea> <br />
Enter the letters here: <input type=text name=captchavalue size=30 />
<img src="{{ url_for('captcha', key=captcha_key) }}"/> <br />
<input type=hidden name=captchakey value={{ captcha_key }} />
<input type=submit value="Submit" />
</form>
<p>
</p>
{% endblock %}