Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Nomenclature chanage: "bug report" becomes "ticket" |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
cf9ee7d67e086669d4a548c802eecc76 |
| User & Date: | drh 2009-01-23 01:01:37.000 |
References
|
2009-01-23
| ||
| 06:13 | • New ticket [1567066c67] Tags menu points into tagview page shows urelated content. artifact: 9d9897fb88 user: anonymous | |
Context
|
2009-01-23
| ||
| 21:24 | First draft of the "branching" document. check-in: 2e275c1420 user: drh tags: trunk | |
| 01:01 | Nomenclature chanage: "bug report" becomes "ticket" check-in: cf9ee7d67e user: drh tags: trunk | |
| 00:16 | Change "baseline" to "check-in" in the on-line documentation. check-in: 904ee40b93 user: drh tags: trunk | |
Changes
Changes to src/report.c.
| ︙ | ︙ | |||
18 19 20 21 22 23 24 | ** ** Author contact information: ** drh@hwaci.com ** http://www.hwaci.com/drh/ ** ******************************************************************************* ** | | | | | | | 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 |
**
** Author contact information:
** drh@hwaci.com
** http://www.hwaci.com/drh/
**
*******************************************************************************
**
** Code to generate the ticket listings
*/
#include "config.h"
#include "report.h"
#include <assert.h>
/* Forward references to static routines */
static void report_format_hints(void);
/*
** WEBPAGE: /reportlist
*/
void view_list(void){
Stmt q;
int rn = 0;
int cnt = 0;
login_check_credentials();
if( !g.okRdTkt && !g.okNewTkt ){ login_needed(); return; }
style_header("Ticket Main Menu");
if( g.okNewTkt ){
@ <p>Enter a new ticket:</p>
@ <ol><li value="1"><a href="tktnew">New ticket</a></li></ol>
@
cnt++;
}
if( !g.okRdTkt ){
@ <p>You are not authorized to view existing tickets.</p>
}else{
db_prepare(&q, "SELECT rn, title, owner FROM reportfmt ORDER BY title");
@ <p>Choose a report format from the following list:</p>
@ <ol>
while( db_step(&q)==SQLITE_ROW ){
const char *zTitle = db_column_text(&q, 1);
const char *zOwner = db_column_text(&q, 2);
|
| ︙ | ︙ | |||
74 75 76 77 78 79 80 |
@ [<a href="rptsql?rn=%d(rn)" rel="nofollow">sql</a>]
}
@ </li>
}
}
@ </ol>
if( g.okTktFmt ){
| | | 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
@ [<a href="rptsql?rn=%d(rn)" rel="nofollow">sql</a>]
}
@ </li>
}
}
@ </ol>
if( g.okTktFmt ){
@ <p>Create a new ticket display format:</p>
@ <ol>
@ <li value="%d(cnt+1)"><a href="rptnew">New report format</a></li>
@ </ol>
}
style_footer();
}
|
| ︙ | ︙ |
Changes to src/style.c.
| ︙ | ︙ | |||
195 196 197 198 199 200 201 |
@ if {[hascap o]} {
@ html "<a href='$baseurl/leaves'>Leaves</a>"
@ html "<a href='$baseurl/timeline'>Timeline</a>"
@ html "<a href='$baseurl/brlist'>Branches</a>"
@ html "<a href='$baseurl/taglist'>Tags</a>"
@ }
@ if {[hascap r]} {
| | | 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
@ if {[hascap o]} {
@ html "<a href='$baseurl/leaves'>Leaves</a>"
@ html "<a href='$baseurl/timeline'>Timeline</a>"
@ html "<a href='$baseurl/brlist'>Branches</a>"
@ html "<a href='$baseurl/taglist'>Tags</a>"
@ }
@ if {[hascap r]} {
@ html "<a href='$baseurl/reportlist'>Tickets</a>"
@ }
@ if {[hascap j]} {
@ html "<a href='$baseurl/wiki'>Wiki</a>"
@ }
@ if {[hascap s]} {
@ html "<a href='$baseurl/setup'>Setup</a>"
@ } elseif {[hascap a]} {
|
| ︙ | ︙ |
Changes to src/tktsetup.c.
| ︙ | ︙ | |||
252 253 254 255 256 257 258 |
static const char zDefaultNew[] =
@ <th1>
@ if {[info exists submit]} {
@ set status Open
@ submit_ticket
@ }
@ </th1>
| | | 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
static const char zDefaultNew[] =
@ <th1>
@ if {[info exists submit]} {
@ set status Open
@ submit_ticket
@ }
@ </th1>
@ <h1 align="center">Enter A New Ticket</h1>
@ <table cellpadding="5">
@ <tr>
@ <td colspan="2">
@ Enter a one-line summary of the problem:<br>
@ <input type="text" name="title" size="60" value="$<title>">
@ </td>
@ </tr>
|
| ︙ | ︙ | |||
323 324 325 326 327 328 329 | @ <td>After filling in the information above, press this button to create @ the new ticket</td> @ </tr> @ <tr> @ <td align="right"> @ <input type="submit" name="cancel" value="Cancel"> @ </td> | | | 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 | @ <td>After filling in the information above, press this button to create @ the new ticket</td> @ </tr> @ <tr> @ <td align="right"> @ <input type="submit" name="cancel" value="Cancel"> @ </td> @ <td>Abandon and forget this ticket</td> @ </tr> @ </table> ; /* ** Return the code used to generate the new ticket page */ |
| ︙ | ︙ |