Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
68e505dc
Commit
68e505dc
authored
Feb 14, 2012
by
Nicolas Dandrimont
🤔
Browse files
More html compliance for the package page
parent
a062cc24
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/templates/package/index.mako
View file @
68e505dc
...
@@ -170,7 +170,7 @@
...
@@ -170,7 +170,7 @@
% for comment in package_version.package_comments:
% for comment in package_version.package_comments:
<li>
<li>
<
p
>
<
div
>
<pre>${ h.util.html_escape(comment.text) }</pre>
<pre>${ h.util.html_escape(comment.text) }</pre>
% if comment.outcome == c.constants.PACKAGE_COMMENT_OUTCOME_NEEDS_WORK:
% if comment.outcome == c.constants.PACKAGE_COMMENT_OUTCOME_NEEDS_WORK:
...
@@ -191,7 +191,7 @@
...
@@ -191,7 +191,7 @@
% endif
% endif
</
p
>
</
div
>
</li>
</li>
% endfor
% endfor
...
@@ -206,9 +206,9 @@
...
@@ -206,9 +206,9 @@
% if 'user_id' in c.session:
% if 'user_id' in c.session:
<h4>New comment</h4>
<h4>New comment</h4>
<fieldset>
${ h.html.tags.form(h.url('comment', packagename=c.package.name), method='post') }
${ h.html.tags.form(h.url('comment', packagename=c.package.name), method='post') }
${ h.html.tags.hidden('package_version', package_version.id) }
<fieldset>
${ h.html.tags.hidden('package_version', package_version.id, id="package_version_%d" % package_version.id) }
% if hasattr(c, 'form_errors'):
% if hasattr(c, 'form_errors'):
<% c.form_errors %>
<% c.form_errors %>
...
@@ -217,25 +217,25 @@ ${ h.html.tags.hidden('package_version', package_version.id) }
...
@@ -217,25 +217,25 @@ ${ h.html.tags.hidden('package_version', package_version.id) }
<table>
<table>
<tr>
<tr>
<td>Comment</td>
<td>Comment</td>
<td>${ h.html.tags.textarea('text', cols=82, rows=10) }</td>
<td>${ h.html.tags.textarea('text', cols=82, rows=10
, id="text_%d" % package_version.id
) }</td>
</tr>
</tr>
<tr>
<tr>
<td>Outcome</td>
<td>Outcome</td>
<td>${ h.html.tags.select('outcome', c.constants.PACKAGE_COMMENT_OUTCOME_UNREVIEWED, c.outcomes) }</td>
<td>${ h.html.tags.select('outcome', c.constants.PACKAGE_COMMENT_OUTCOME_UNREVIEWED, c.outcomes
, id="outcomes_%d" % package_version.id
) }</td>
</tr>
</tr>
% if config['debexpo.debian_specific'] == 'true' and c.user.status == c.constants.USER_STATUS_DEVELOPER:
% if config['debexpo.debian_specific'] == 'true' and c.user.status == c.constants.USER_STATUS_DEVELOPER:
<tr>
<tr>
<td>${ _('Uploaded to Debian') }</td>
<td>${ _('Uploaded to Debian') }</td>
<td>${ h.html.tags.checkbox('status') }</td>
<td>${ h.html.tags.checkbox('status'
, id="status_%d" % package_version.id
) }</td>
</tr>
</tr>
% endif
% endif
<tr>
<tr>
<td>${ h.html.tags.submit('commit', _('Submit')) }</td>
<td>${ h.html.tags.submit('commit', _('Submit')
, id="commit_%d" % package_version.id
) }</td>
</tr>
</tr>
</table>
</table>
</fieldset>
${ h.html.tags.end_form() }
${ h.html.tags.end_form() }
</fieldset>
% endif
% endif
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment