# HG changeset patch # User Aleksej Bobylev # Date 1429363618 -10800 # Node ID d0dbe11a20606858c088da4981bb838995043068 # Parent 64df20b58acc7aa084dc07e0fa0f72c5f29c841d Fix "Confirm break", add Improvement script, tiny edits. diff -r 64df20b58acc -r d0dbe11a2060 index.cgi --- a/index.cgi Mon Apr 13 17:04:00 2015 +0200 +++ b/index.cgi Sat Apr 18 16:26:58 2015 +0300 @@ -209,6 +209,8 @@ syntax_highlighter xlog ;; *dmesg.log) syntax_highlighter kernel ;; + */receipt) + syntax_highlighter sh ;; *) cat | htmlize ;; esac < $file diff -r 64df20b58acc -r d0dbe11a2060 lib/tazpanel.js --- a/lib/tazpanel.js Mon Apr 13 17:04:00 2015 +0200 +++ b/lib/tazpanel.js Sat Apr 18 16:26:58 2015 +0300 @@ -12,7 +12,7 @@ // Confirm page loading break function confirmExit() { - return "$(_ 'Confirm break')"; + return document.getElementById('confirmBreak').innerText; } // Attach event handler window.onbeforeunload = confirmExit; @@ -453,3 +453,18 @@ } } } + + +// +// Improving packages by the community effort. +// + +function improveAction() { + improveType = document.getElementById('improveType'); + improveText = document.getElementById('improveText'); + + if (improveType.value == '') + improveText.value = ''; + else + improveText.value = document.getElementById(improveType.value).innerText; +} diff -r 64df20b58acc -r d0dbe11a2060 styles/default/header.html --- a/styles/default/header.html Mon Apr 13 17:04:00 2015 +0200 +++ b/styles/default/header.html Sat Apr 18 16:26:58 2015 +0300 @@ -13,6 +13,7 @@ +

$TITLEĀ 

diff -r 64df20b58acc -r d0dbe11a2060 styles/default/tweaks.css --- a/styles/default/tweaks.css Mon Apr 13 17:04:00 2015 +0200 +++ b/styles/default/tweaks.css Sat Apr 18 16:26:58 2015 +0300 @@ -184,6 +184,9 @@ * Buttons with icons * **********************/ +.light a[data-icon]::before, .light button[data-icon]::before +{ color: #333; } + .light button[data-icon]::before { text-shadow: 0 1px 0 hsla(0, 0%, 100%, 0.9); } @@ -193,24 +196,27 @@ -webkit-background-clip: text; -webkit-text-fill-color: transparent; } -/*.light a[data-icon]:before { color: #333; }*/ + a[data-icon] { white-space: pre-line; } [data-icon="cancel"]::before, [data-icon="delete"]::before, [data-icon="remove"]::before, [data-icon="stop"]:not([disabled])::before, [data-img="help"]::before, [data-img="man"]::before, [data-img="off"]::before, [data-img="remove"]::before, -[data-img="stop"]::before, [data-icon="pkgib"]::before {color:#dc322f} /*red*/ +[data-img="stop"]::before, [data-icon="pkgib"]::before +{color:#dc322f!important} /*red*/ [data-icon="restart"]:not([disabled])::before, [data-img="conf"]::before, -[data-img="slitaz"]::before {color:#cb4b16} /*orange*/ +[data-img="slitaz"]::before +{color:#cb4b16!important} /*orange*/ [data-icon="ok"]::before, [data-icon="run"]::before, [data-icon="start"]:not([disabled])::before, [data-img="on"]::before, [data-img="opt"]::before, [data-img="run"]::before, [data-icon="pkgi"]::before, -[data-img="user"]::before {color:#859900} /*green*/ +[data-img="user"]::before {color:#859900!important} /*green*/ -[data-img="web"]::before {color:#268bd2}, [data-icon="pkg"]::before /*blue*/ +[data-img="web"]::before, [data-icon="pkg"]::before +{color:#268bd2!important} /*blue*/ /* disabled buttons with gray icons */ /*.light [disabled][data-icon]::before {color:#888}