Skip to content

Commit

Permalink
robo8x [chore] 12/31/2018, 4:28:34 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Dec 31, 2018
1 parent 7cb04d4 commit e3080a7
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 30 deletions.
5 changes: 0 additions & 5 deletions artifacts/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ title = ""
; big files can block the browser in code mirror, so there is a limit
codemirror_full_limit = 48

; there is a menu in the github button ,
; there is a changelog button, if tis is false
; the changelog button is hidden
github_repo_changelog = true

[clone_button]
; ssh remote
show_ssh_remote = true ; display remote URL for SSH
Expand Down
5 changes: 0 additions & 5 deletions artifacts/config.windows.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ title = "P3X Gitlist Windows"
; big files can block the browser in code mirror, so there is a limit
codemirror_full_limit = 48

; there is a menu in the github button ,
; there is a changelog button, if tis is false
; the changelog button is hidden
github_repo_changelog = true

[clone_button]
; ssh remote
show_ssh_remote = true ; display remote URL for SSH
Expand Down
4 changes: 0 additions & 4 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@

## v2018.12.31
* config.ini changes
* app.github_repo_changelog
* there is a menu in the github button
* there is a changelog button, if this is false
* the changelog button is hidden
* clone.git_http_subdir_calculated
* true = it calculates to actual route/nested path by itself for the http clone button
* git_http_subdir
Expand Down
4 changes: 0 additions & 4 deletions config.example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ cache = true
; big files can block the browser in code mirror, so there is a limit
codemirror_full_limit = 48

; there is a menu in the github button ,
; there is a changelog button, if tis is false
; the changelog button is hidden
github_repo_changelog = true

[clone_button]
; ssh remote
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p3x-gitlist",
"version": "2018.12.31-3",
"version": "2018.12.31-4",
"corifeus": {
"prod-dir": "prod",
"css-postfix": "333a67e1315d881bf5f6d3010d0c93828f294f24f7be203534d473210b0bd3ca",
Expand Down
6 changes: 0 additions & 6 deletions src/GitList/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,6 @@ public function __construct(Config $config, $root = null)
}
$twig->addGlobal('codemirror_full_limit', $codemirror_full_limit);

$github_repo_changelog = (bool)$config->get('app', 'github_repo_changelog');
if (!is_bool($github_repo_changelog)) {
$github_repo_changelog = true;
}
$twig->addGlobal('github_repo_changelog', $github_repo_changelog);


return $twig;
});
Expand Down
2 changes: 2 additions & 0 deletions src/browser/js/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ $(function () {
})
}

/*
const cookieShownChangelogName = 'p3x-gitlist-changelog-shown';
const cookieShownChangelog = Cookies.get(cookieShownChangelogName)
if (!cookieShownChangelog) {
Cookies.set(cookieShownChangelogName, true, window.gitlist.cookieSettings)
window.gitlist.changeLog()
}
*/

$("#p3x-gitlist-to-top").click(function(event) {
event.preventDefault();
Expand Down
8 changes: 3 additions & 5 deletions src/twig/navigation.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@
<a href="https://github.com/patrikx3/gitlist" target="p3x-gitlist" >Repo</a>
</li>

{% if github_repo_changelog %}
<li>
<a href="javascript:void(0);" onclick="window.gitlist.changeLog()">Changelog</a>
</li>
{% endif %}
<li>
<a href="javascript:void(0);" onclick="window.gitlist.changeLog()">Changelog</a>
</li>
<li>
<a href="javascript:void(0);" onclick="window.gitlist.todo()">To do</a>
</li>
Expand Down

0 comments on commit e3080a7

Please sign in to comment.