xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
Commit 47d48b6bbf669bd51d6876521fa288d217dda5d2

Fixed bug add menu
Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-03-11 23:32
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2016-03-11 23:32
Parent(s): 1e68d0bbf8e16365068636a4e813c8ae0db2be5c
Signing key:
Tree: 4736d0166390d7094cf3c046a26248354e7e3c18
File Lines added Lines deleted
inc/user/repo/bug/main.php 7 7
root/themes/default/main.css 0 1
File inc/user/repo/bug/main.php changed (mode: 100644) (index 385aa4a..c9ce253)
... ... $_bug_body = "";
5 5
6 6 $rg['can_save'] = $rg['login_ui']['uid'] > 0 ? 1 : 0; $rg['can_save'] = $rg['login_ui']['uid'] > 0 ? 1 : 0;
7 7
8 $_op = empty($paras) ? "list" : array_shift($paras);
9 $rg['menu']['sub2'][$_op] = 1;
10
11 $rg['HTML:menu_repo_level2'] =
12 rg_template('repo/bug/menu.html', $rg, TRUE /*xss*/);
13
14 8 $rg['allow_bug_add'] = 0; $rg['allow_bug_add'] = 0;
15 9 $x = array(); $x = array();
16 10 $x['obj_id'] = $rg['ri']['repo_id']; $x['obj_id'] = $rg['ri']['repo_id'];
 
... ... $x['needed_rights'] = 'B';
24 18 if (rg_rights_allow($db, $x) === TRUE) if (rg_rights_allow($db, $x) === TRUE)
25 19 $rg['allow_bug_add'] = 1; $rg['allow_bug_add'] = 1;
26 20
21 $_op = empty($paras) ? "list" : array_shift($paras);
22 $rg['menu']['sub2'][$_op] = 1;
23
24 $rg['HTML:menu_repo_level2'] =
25 rg_template('repo/bug/menu.html', $rg, TRUE /*xss*/);
26
27 27 switch ($_op) { switch ($_op) {
28 28 case 'search': case 'search':
29 29 include($INC . "/user/repo/bug/search/search.php"); include($INC . "/user/repo/bug/search/search.php");
 
... ... default: // show - go directly to a bug
108 108 } }
109 109
110 110 $rg['HTML:bug_body'] = $_bug_body; $rg['HTML:bug_body'] = $_bug_body;
111 $bug_body = rg_template("repo/bug/main.html", $rg, TRUE /* xss */);
111 $bug_body = rg_template('repo/bug/main.html', $rg, TRUE /*xss*/);
112 112 ?> ?>
File root/themes/default/main.css changed (mode: 100644) (index 8957882..08a8388)
... ... legend { padding: 0px 2pt; }
422 422 display: flex; display: flex;
423 423 flex-flow: column nowrap; flex-flow: column nowrap;
424 424 align-items: flex-start; align-items: flex-start;
425 margin-top: 5px;
426 425 } }
427 426 .bug_body { .bug_body {
428 427 margin-top: 3px; margin-top: 3px;
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master