Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/roundup/templates/confidential.item.html.erb

Issue 6033763767156736: Concept for Roundup as issue tracker. (Closed)
Patch Set: Created Feb. 25, 2014, 8:34 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: modules/roundup/templates/confidential.item.html.erb
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/roundup/templates/confidential.item.html.erb
@@ -0,0 +1,218 @@
+<!-- dollarId: issue.item,v 1.4 2001/08/03 01:19:43 richard Exp dollar-->
+<tal:block metal:use-macro="templates/page/macros/icing">
+<title metal:fill-slot="head_title">
+<tal:block condition="context/id" i18n:translate=""
+ >Issue <tal:x tal:content="context/id" i18n:name="id"
+ />: <tal:x content="context/title" i18n:name="title"
+ /> - <tal:x content="config/TRACKER_NAME" i18n:name="tracker"
+/></tal:block>
+<tal:block condition="not:context/id" i18n:translate=""
+ >New Issue - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
+/></tal:block>
+</title>
+<tal:block metal:fill-slot="body_title">
+ <span tal:condition="python: not (context.id or context.is_edit_ok())"
+ tal:omit-tag="python:1" >New CONFIDENTIAL Issue</span>
+ <span tal:condition="python: not context.id and context.is_edit_ok()"
+ tal:omit-tag="python:1" i18n:translate="">New CONFIDENTIAL Issue Editing</span>
+ <span tal:condition="python: context.id and not context.is_edit_ok()"
+ tal:omit-tag="python:1" i18n:translate="">Issue<tal:x
+ replace="context/id" i18n:name="id" /></span>
+ <span tal:condition="python: context.id and context.is_edit_ok()"
+ tal:omit-tag="python:1" i18n:translate="">CONFIDENTIAL Issue<tal:x
+ replace="context/id" i18n:name="id" /> Editing</span>
+</tal:block>
+
+<td class="content" metal:fill-slot="content">
+
+<p tal:condition="python:not (context.is_view_ok()
+ or request.user.hasRole('Anonymous'))" i18n:translate="">
+ You are not allowed to view this page.</p>
+
+<p tal:condition="python:not context.is_view_ok()
+ and request.user.hasRole('Anonymous')" i18n:translate="">
+ Please login with your username and password.</p>
+
+<div tal:condition="context/is_view_ok">
+
+<form method="POST" name="itemSynopsis"
+ onSubmit="return submit_once()" enctype="multipart/form-data"
+ tal:attributes="action context/designator">
+
+<table class="form">
+<tr>
+ <th class="required" i18n:translate="">Title</th>
+ <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td>
+</tr>
+
+<tr>
+ <th class="required">Type</th>
+ <td tal:content="structure context/type/menu">type</td>
+</tr>
+
+<tr>
+ <th>Module</th>
+ <td tal:content="structure context/module/menu">module</td>
+</tr>
+
+<tr>
+ <th i18n:translate="">Priority</th>
+ <td tal:content="structure context/priority/menu">priority</td>
+</tr>
+
+<tr>
+ <th i18n:translate="">Status</th>
+ <td tal:content="structure context/status/menu">status</td>
+</tr>
+
+<tr>
+ <th >Depends on</th>
+ <td>
+ <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
+ <span tal:condition="context/is_edit_ok" tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" />
+ <span tal:condition="context/superseder">
+ <br><span i18n:translate="">View:</span>
+ <a tal:repeat="sup context/superseder"
+ tal:content="python:sup['id'] + ', '*(not repeat['sup'].end)"
+ tal:attributes="href string:issue${sup/id}"></a>
+ </span>
+ </td>
+ <tr tal:condition="context/is_edit_ok">
+ <th >CC list</th>
+ <td>
+ <span tal:replace="structure context/nosy/field" />
+ <span tal:condition="context/is_edit_ok" tal:replace="structure
+python:db.user.classhelp('username,realname,address', property='nosy', width='600')" /><br>
+ </td>
+</tr>
+
+<tr>
+ <tr tal:condition="context/is_edit_ok">
+ <th >Assigned</th>
+ <td>
+ <span tal:replace="structure context/assignedto/field" />
+ <span tal:condition="context/is_edit_ok" tal:replace="structure
+python:db.user.classhelp('username,realname,address', property='assignedto', width='600')" /><br>
+ </td>
+ <th i18n:translate="">Keywords</th>
+ <td>
+ <span tal:replace="structure context/keyword/field" />
+ <span tal:condition="context/is_edit_ok" tal:replace="structure python:db.keyword.classhelp(property='keyword')" />
+ </td>
+</tr>
+
+<tr tal:condition="context/is_edit_ok">
+ <th >Comment</th>
+ <td colspan=3>
+ <textarea tal:content="request/form/@note/value | default"
+ name="@note" wrap="hard" rows="5" cols="80"></textarea>
+ </td>
+</tr>
+
+<tr tal:condition="context/is_edit_ok">
+ <th i18n:translate="">File</th>
+ <td colspan=3><input type="file" name="@file" size="40"></td>
+</tr>
+
+<tr tal:condition="context/is_edit_ok">
+ <td>
+ &nbsp;
+ <input type="hidden" name="@template" value="item">
+ <input type="hidden" name="@required" value="title">
+ <input type="hidden" name="@required" value="type">
+ </td>
+ <td colspan=3>
+ <span tal:replace="structure context/submit">submit button</span>
+ <a tal:condition="context/id" tal:attributes="href context/copy_url"
+ i18n:translate="">Make a copy</a>
+ </td>
+</tr>
+
+</table>
+</form>
+
+<tal:block tal:condition="not:context/id" i18n:translate="">
+<table class="form">
+<tr>
+ <td>Note:&nbsp;</td>
+ <th class="required">highlighted</th>
+ <td>&nbsp;fields are required.</td>
+</tr>
+</table>
+</tal:block>
+
+<p tal:condition="context/id" i18n:translate="">
+ Created on <b tal:content="context/creation" i18n:name="creation" />
+ by <b tal:content="context/creator" i18n:name="creator" />,
+ last changed <b content="context/activity" i18n:name="activity" />
+ by <b tal:content="context/actor" i18n:name="actor" />.
+</p>
+
+<table class="files" tal:condition="context/files">
+ <tr><th colspan="5" class="header" i18n:translate="">Files</th></tr>
+ <tr>
+ <th i18n:translate="">File name</th>
+ <th i18n:translate="">Uploaded</th>
+ <th i18n:translate="">Type</th>
+ <th i18n:translate="">Edit</th>
+ <th i18n:translate="">Remove</th>
+ </tr>
+ <tr tal:repeat="file context/files">
+ <td>
+ <a tal:attributes="href file/download_url"
+ tal:content="file/name">dld link</a>
+ </td>
+ <td>
+ <span tal:content="file/creator">creator's name</span>,
+ <span tal:content="file/creation">creation date</span>
+ </td>
+ <td tal:content="file/type" />
+ <td><a tal:condition="file/is_edit_ok"
+ tal:attributes="href string:file${file/id}">edit</a>
+ </td>
+ <td>
+ <form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
+ tal:attributes="action string:issue${context/id}">
+ <input type="hidden" name="@remove@files" tal:attributes="value file/id">
+ <input type="hidden" name="@action" value="edit">
+ <input type="submit" value="remove" i18n:attributes="value">
+ </form>
+ </td>
+ </tr>
+</table>
+
+<table class="messages" tal:condition="context/messages">
+ <tr><th colspan="4" class="header" i18n:translate="">Messages</th></tr>
+ <tal:block tal:repeat="msg context/messages">
+ <tr>
+ <th><a tal:attributes="href string:msg${msg/id}"
+ i18n:translate="">msg<tal:x replace="msg/id" i18n:name="id" /> (view)</a></th>
+ <th i18n:translate="">Author: <tal:x replace="msg/author"
+ i18n:name="author" /></th>
+ <th i18n:translate="">Date: <tal:x replace="msg/date"
+ i18n:name="date" /></th>
+ <th>
+ <form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
+ tal:attributes="action string:issue${context/id}">
+ <input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
+ <input type="hidden" name="@action" value="edit">
+ <input type="submit" value="remove" i18n:attributes="value">
+ </form>
+ </th>
+ </tr>
+ <tr>
+ <td colspan="4" class="content">
+ <pre tal:content="structure msg/content/hyperlinked">content</pre>
+ </td>
+ </tr>
+ </tal:block>
+</table>
+
+<tal:block tal:condition="context/id" tal:replace="structure context/history" />
+
+</div>
+
+</td>
+
+</tal:block>
+<!-- SHA: a242ab3ed5c6969916f3c42f80d487710f165fb8 -->
« no previous file with comments | « modules/roundup/templates/confidential.index.html.erb ('k') | modules/roundup/templates/confidential.search.html.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld