Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Show labels on bug page. | 9770087d9479e2853e2054adbe51174f0e64440f | Catalin(ux) M. BOIE | 2012-07-05 20:14:01 |
Now, bug inserts works | 1f015ea792b00f3ba52cf88a7bb5b9975828fd8f | Catalin(ux) M. BOIE | 2012-07-04 23:02:10 |
Bulk | 9d56cfb9031f9e09680e61e41614fce4f846e767 | Catalin(ux) M. BOIE | 2012-07-04 22:03:35 |
Bulk + first version of bug tracking | b6a908e44053809a8c00c14e71aaea3fee524fd9 | Catalin(ux) M. BOIE | 2012-05-15 21:18:35 |
Bulk | 61b4d6048dca4647c779777323e23347bc89d1c0 | Catalin(ux) M. BOIE | 2012-05-09 19:28:35 |
Bulk | d05a5530f3dd7e29a58adf5003944806535e2a41 | Catalin(ux) M. BOIE | 2012-05-09 03:20:27 |
Bulk | 152dd3be1dc42e1f3585d43750c3c1c42551ae27 | Catalin(ux) M. BOIE | 2012-04-19 04:06:55 |
Bulk | 2ec92b1397e09b0714d1ee423dcd72f4a220b332 | Catalin(ux) M. BOIE | 2012-04-16 06:43:38 |
aa | 63a5cea75e640e6c11975bf6ab1c7bc49747a6bb | Catalin(ux) M. BOIE | 2012-03-26 21:09:23 |
Misc fixes | eac04dc796b2c315b65753025e1e311bc25e83d7 | Catalin(ux) M. BOIE | 2012-03-26 18:14:32 |
Fixes for schema autoupdate | 63d2a1a4f4c0498135a96f1a3d374868dc3d3535 | Catalin(ux) M. BOIE | 2012-03-23 04:19:09 |
Test CSRF token for the rights for a repo. | e2d32e100f724e80ee623f191784ce429156ac39 | Catalin(ux) M. BOIE | 2012-03-22 03:54:37 |
Fixed anon push without create branch rights | 3d474b7a569b16d87a426d4c3b971a50b3299894 | Catalin(ux) M. BOIE | 2012-03-22 03:43:06 |
Use rg_repos for repositories | e5bda9469fddee7f201c22dfd89292830f4c342b | Catalin(ux) M. BOIE | 2012-03-22 03:42:06 |
Corrected <label> tags | 7e8621e79480b8964e04de8c54f10f1a702ea1fd | Catalin(ux) M. BOIE | 2012-03-20 04:25:38 |
Fixed unit testing | 31bfe5672e7d3b620d0e7b3c07ff72d84c149001 | Catalin(ux) M. BOIE | 2012-03-17 17:21:21 |
Fixed hook_update.sh unit testing | 86c4079e81efc5a4a7878e91d8f4318e443961f7 | Catalin(ux) M. BOIE | 2012-03-16 22:32:35 |
Bulk updates | f696473a7faee50782d3cc01e96cc85e7900b3de | Catalin(ux) M. BOIE | 2012-03-14 04:38:23 |
Style changes. | 87e30b1df29b7c6efa438be1cf369192a8068655 | Catalin(ux) M. BOIE | 2012-02-19 22:50:22 |
Bulk | 0923407bff68a58a0b7b034f8a6b4489ece5b237 | Catalin(ux) M. BOIE | 2012-02-12 22:21:44 |
File inc/bug.inc.php changed (mode: 100644) (index f3976a7..411a5cd) | |||
... | ... | function rg_bug_next_id($db, $repo_id) | |
30 | 30 | rg_prof_start("bug_next_id"); | rg_prof_start("bug_next_id"); |
31 | 31 | ||
32 | 32 | $next_bug_id = FALSE; | $next_bug_id = FALSE; |
33 | |||
34 | 33 | do { | do { |
35 | 34 | $sql = "UPDATE bugs_max SET last_bug_id = last_bug_id + 1" | $sql = "UPDATE bugs_max SET last_bug_id = last_bug_id + 1" |
36 | 35 | . " WHERE repo_id = $repo_id" | . " WHERE repo_id = $repo_id" |
... | ... | function rg_bug_next_id($db, $repo_id) | |
59 | 58 | break; | break; |
60 | 59 | } | } |
61 | 60 | ||
61 | /* | ||
62 | * Here, another client may just did the insert and commited | ||
63 | * and we obtain the lock. So, we have to check if a insert | ||
64 | * took place. if we | ||
65 | */ | ||
66 | $sql = "SELECT 1 FROM bugs_max WHERE repo_id = $repo_id"; | ||
67 | $res = rg_sql_query($db, $sql); | ||
68 | if ($res === FALSE) { | ||
69 | rg_bug_set_error("cannot select 1 from max table (" . rg_sql_error() . ")"); | ||
70 | break; | ||
71 | } | ||
72 | $rows = rg_sql_num_rows($res); | ||
73 | rg_sql_free_result($res); | ||
74 | |||
75 | if ($rows == 1) { | ||
76 | /* | ||
77 | * The other client was faster than us. Just try to update | ||
78 | */ | ||
79 | continue; | ||
80 | } | ||
81 | |||
82 | // We was faster, just insert. | ||
62 | 83 | $sql = "INSERT INTO bugs_max (repo_id, last_bug_id)" | $sql = "INSERT INTO bugs_max (repo_id, last_bug_id)" |
63 | 84 | . " VALUES ($repo_id, 1)"; | . " VALUES ($repo_id, 1)"; |
64 | 85 | $res = rg_sql_query($db, $sql); | $res = rg_sql_query($db, $sql); |
... | ... | function rg_bug_label_insert($db, $repo_id, $bug_id, $labels) | |
548 | 569 | return $ret; | return $ret; |
549 | 570 | } | } |
550 | 571 | ||
572 | /* | ||
573 | * Returns labels as HTML | ||
574 | */ | ||
575 | function rg_bug_label_html($db, $repo_id, $bug_id) | ||
576 | { | ||
577 | $labels = rg_bug_label_get($db, $repo_id, $bug_id); | ||
578 | |||
579 | if (!empty($labels)) { | ||
580 | $a = array(); | ||
581 | foreach ($labels as $label) | ||
582 | $a[] = array("label" => $label); | ||
583 | } | ||
584 | |||
585 | return rg_template_table("repo/bug/list_labels", $a, array()); | ||
586 | } | ||
587 | |||
551 | 588 | ?> | ?> |
File inc/user/repo/bug/show.php changed (mode: 100644) (index dc97f45..b3e9ace) | |||
... | ... | if ($doit == 0) { | |
45 | 45 | } | } |
46 | 46 | } | } |
47 | 47 | ||
48 | // load labels | ||
49 | $labels = rg_bug_label_get($db, $ri['repo_id'], $bug_id); | ||
50 | if ($labels === FALSE) | ||
51 | $_tmp['HTML:labels'] = "Cannot load labels!"; | ||
52 | else | ||
53 | $_tmp['HTML:labels'] = rg_bug_label_html($db, $ri['repo_id'], $bug_id); | ||
54 | |||
48 | 55 | // load notes | // load notes |
49 | 56 | $notes = rg_bug_note_list($db, $ri['repo_id'], $bug_id, 0); | $notes = rg_bug_note_list($db, $ri['repo_id'], $bug_id, 0); |
50 | 57 | if ($notes === FALSE) | if ($notes === FALSE) |
File root/themes/default/main.css changed (mode: 100644) (index 92ea39b..68706a8) | |||
... | ... | label { | |
189 | 189 | .error b { color: #ff0000; font-weight: bold; font-size: 11pt; } | .error b { color: #ff0000; font-weight: bold; font-size: 11pt; } |
190 | 190 | .error ul { padding-left: 15pt; } | .error ul { padding-left: 15pt; } |
191 | 191 | .error ul li {} | .error ul li {} |
192 | |||
193 | .labels { padding: 3px 0px; margin: 3px 0px; } | ||
194 | .labels ul { list-style-type: none; } | ||
195 | .labels ul li { | ||
196 | display: inline; | ||
197 | padding: 3px 3px; | ||
198 | text-decoration: none; | ||
199 | color: black; | ||
200 | border: 1px solid #cccccc; | ||
201 | border-radius: 4px 4px 4px 4px; | ||
202 | font-size: 9pt; | ||
203 | background-color: #a0d0ff; | ||
204 | } | ||
205 |
File root/themes/default/repo/bug/list_labels/footer.html copied from file root/themes/default/errmsg/footer.html (similarity 100%) |
File root/themes/default/repo/bug/list_labels/header.html added (mode: 100644) (index 0000000..71233bc) | |||
1 | <div class="labels"> | ||
2 | <ul> |
File root/themes/default/repo/bug/list_labels/line.html added (mode: 100644) (index 0000000..9141356) | |||
1 | <li>@@label@@</li> |
File root/themes/default/repo/bug/list_labels/nodata.html copied from file root/themes/default/errmsg/nodata.html (similarity 100%) |
File root/themes/default/repo/bug/list_note/nodata.html changed (mode: 100644) (index 7d61d82..e69de29) | |||
1 | <div class="warning"> | ||
2 | No notes found. | ||
3 | </div> |
File root/themes/default/repo/bug/show.html changed (mode: 100644) (index 413f3d7..83acfb4) | |||
... | ... | Body:<br /> | |
10 | 10 | @@body@@ | @@body@@ |
11 | 11 | <br /> | <br /> |
12 | 12 | ||
13 | @@labels@@ | ||
13 | 14 | @@notes@@ | @@notes@@ |
14 | 15 | ||
15 | 16 | @@note_add@@ | @@note_add@@ |