List of commits:
Subject Hash Author Date (UTC)
Limit the number of repositories in the discover page a0de6d683b59934168ef8415c9ec716aef68b195 Catalin(ux) M. BOIE 2020-08-23 14:58:37
Added support for other branch then master (main prefered) 1108f43c3639ffcc06f1314d901640564fae7483 Catalin(ux) M. BOIE 2020-08-23 14:55:51
Added possibility for admin to mail users 05068314021bbdf6f26bc92bee47177b170b2a1c Catalin(ux) M. BOIE 2020-08-23 14:43:10
CSS: small fixes e4a39879513e000b5d9be588201916950fa629fc Catalin(ux) M. BOIE 2020-08-23 14:03:23
Cosmetic cbe42130692ed9b876746e6c97f4fb32439c6190 Catalin(ux) M. BOIE 2020-08-23 13:59:00
Default statistics are now per month c312ad532190fe566f2243881a883568b4f77c23 Catalin(ux) M. BOIE 2020-08-23 12:35:36
events: when splitting an event we need a transaction e685c800814365661b348c0d04aa8c0b3605ed7e Catalin(ux) M. BOIE 2020-08-21 04:35:17
Fix for a bug preventing partition table to be created in advance 51049495934efa8c7bca710c6f2538f34bc4de9a Catalin(ux) M. BOIE 2020-08-20 04:03:49
cron fixes 910c74f83740da015d654193025cd6433324a1da Catalin(ux) M. BOIE 2020-08-20 03:41:07
replaced 'slave' with 'part' 348a2afcaedd77c7513b5e7dd05364f5e9ae7a87 Catalin(ux) M. BOIE 2020-08-20 03:40:43
Make cron tasks more resilient in case the machine is stopped afbe8607b4608862787bf696f71027beb345701f Catalin(ux) M. BOIE 2020-08-19 06:08:34
Cosmetic 21956573027d83eb45913b6bf30eeb57e602aea4 Catalin(ux) M. BOIE 2020-08-19 06:07:45
Added time of upload for artifacts fd33fe0aeef09f66d74f3ec1554312a2fa5e2642 Catalin(ux) M. BOIE 2020-08-19 06:06:54
css fixes for table scroll 77e486f3c9e3c9356985d3c21bc713d8a8d0e223 Catalin(ux) M. BOIE 2020-08-19 06:02:09
Added git repo size 9828b1fe96e2217ead8863f7a7c0ee3599d16633 Catalin(ux) M. BOIE 2020-08-19 06:01:27
Change artifacts path to be able to compute correct sizes efff16c88415dfca0a4b52981b44620e52778c03 Catalin(ux) M. BOIE 2020-08-19 05:56:17
Some state was not under transaction fd51b92442fb83fc6941f94b22236f5014f0062c Catalin(ux) M. BOIE 2020-08-19 03:24:28
Added artifacts size to repos and users tables 2a8469e3416e63e9bb21ba0e412583fc69fea115 Catalin(ux) M. BOIE 2020-08-19 03:23:58
No need to invalidate last part ts because we already check 75cf0ae1721d9473bb8df780cc61f5c6247a7a6c Catalin(ux) M. BOIE 2020-08-19 03:20:19
Fixed some spaces in profiling 929b95c5d842ffe306031f2ba99d23e435855155 Catalin(ux) M. BOIE 2020-08-18 07:11:30
Commit a0de6d683b59934168ef8415c9ec716aef68b195 - Limit the number of repositories in the discover page
Author: Catalin(ux) M. BOIE
Author date (UTC): 2020-08-23 14:58
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2020-08-23 14:58
Parent(s): 1108f43c3639ffcc06f1314d901640564fae7483
Signer:
Signing key:
Signing status: N
Tree: eb890d320417fd1c976933ec3ba53d3b0cef900b
File Lines added Lines deleted
inc/admin/repos/repos.php 1 2
inc/repo.inc.php 14 6
inc/repo/repo.php 1 1
inc/user/home-page.php 1 1
File inc/admin/repos/repos.php changed (mode: 100644) (index f0edbe3..b9f83f1)
... ... case 'add':
15 15
16 16 default: // list default: // list
17 17 $_uid = 0; $_uid = 0;
18 $_admin_repos .= rg_repo_list($db, $rg, "TODO: fix url", $_uid);
18 $_admin_repos .= rg_repo_list($db, $rg, "TODO: fix url", $_uid, 0);
19 19 break; break;
20 20 } }
21 21
22 ?>
File inc/repo.inc.php changed (mode: 100644) (index 2728da7..8ddc4a8)
... ... function rg_repo_list_query($db, $url, $sql, $params, $login_ui)
1319 1319 * List repos of page user 'ui'. * List repos of page user 'ui'.
1320 1320 * @uid - owner of the to be listed repos * @uid - owner of the to be listed repos
1321 1321 */ */
1322 function rg_repo_list($db, $rg, $url, $uid)
1322 function rg_repo_list($db, $rg, $url, $uid, $limit)
1323 1323 { {
1324 1324 rg_log("repo_list: url=$url uid=" . $uid rg_log("repo_list: url=$url uid=" . $uid
1325 1325 . " login_uid=" . $rg['login_ui']['uid']); . " login_uid=" . $rg['login_ui']['uid']);
 
... ... function rg_repo_list($db, $rg, $url, $uid)
1338 1338 || ($rg['login_ui']['uid'] != $uid)) || ($rg['login_ui']['uid'] != $uid))
1339 1339 $add .= " AND public = 1"; $add .= " AND public = 1";
1340 1340
1341 $sql = "SELECT * FROM repos"
1342 . " WHERE deleted = 0"
1341 if ($limit > 0)
1342 $add_limit = ' LIMIT ' . $limit;
1343 else
1344 $add_limit = '';
1345
1346 $sql = 'SELECT * FROM repos'
1347 . ' WHERE deleted = 0'
1343 1348 . $add . $add
1344 . " ORDER BY name";
1349 . ' ORDER BY name'
1350 . $add_limit;
1345 1351
1346 1352 return rg_repo_list_query($db, $url, $sql, $params, $rg['login_ui']); return rg_repo_list_query($db, $url, $sql, $params, $rg['login_ui']);
1347 1353 } }
 
... ... function rg_repo_discover($db, $op, $rg, $ui)
2165 2171 break; break;
2166 2172
2167 2173 default: default:
2168 $x = rg_repo_list($db, $rg, '', $ui['uid']);
2174 $x = rg_repo_list($db, $rg, '', $ui['uid'], 100);
2175 if ($x === FALSE)
2176 $x = rg_template('internal_err.html', $rg, TRUE /*xss*/);
2169 2177 break; break;
2170 2178 } }
2171 2179
2172 2180 $rg['discover_menu_' . $op] = 1; $rg['discover_menu_' . $op] = 1;
2173 $ret .= rg_template('repo/discover.html', $rg, TRUE /* xss */);
2181 $ret .= rg_template('repo/discover.html', $rg, TRUE /*xss*/);
2174 2182 $ret .= '<div class="generic_body">' . "\n"; $ret .= '<div class="generic_body">' . "\n";
2175 2183 $ret .= $x; $ret .= $x;
2176 2184 $ret .= '</div>' . "\n"; $ret .= '</div>' . "\n";
File inc/repo/repo.php changed (mode: 100644) (index 3dba116..0143519)
... ... case 'search':
30 30 break; break;
31 31
32 32 case 'list': case 'list':
33 $_repo .= rg_repo_list($db, $rg, "", $rg['login_ui']['uid']);
33 $_repo .= rg_repo_list($db, $rg, "", $rg['login_ui']['uid'], 0);
34 34 break; break;
35 35 } }
36 36
File inc/user/home-page.php changed (mode: 100644) (index a2e5ccd..8f05d4e)
... ... $_home .= rg_template('user/home.html', $rg, TRUE /*xss*/);
18 18
19 19 // List of repositories // List of repositories
20 20 //$_home .= 'Repositories:'; //$_home .= 'Repositories:';
21 $_home .= rg_repo_list($db, $rg, '', $rg['page_ui']['uid']);
21 $_home .= rg_repo_list($db, $rg, '', $rg['page_ui']['uid'], 0);
22 22
23 23
24 24 // hints // hints
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://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

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