From 3528a4a684728d0386bc2171a0c3127e0327a782 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 1 Sep 2017 03:36:00 +0000 Subject: [PATCH] added some anchors in the code history view to use images --- codepot/README | 1 + codepot/src/codepot/views/code_history.php | 9 ++++++++- codepot/src/css/common.css | 12 ++++++++++++ codepot/src/css/images/Makefile.am | 2 ++ codepot/src/css/images/Makefile.in | 2 ++ .../src/css/images/iconmonstr-script-4-240.png | Bin 0 -> 10230 bytes .../src/css/images/iconmonstr-sitemap-7-240.png | Bin 0 -> 1290 bytes 7 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 codepot/src/css/images/iconmonstr-script-4-240.png create mode 100644 codepot/src/css/images/iconmonstr-sitemap-7-240.png diff --git a/codepot/README b/codepot/README index bdfa74ac..268caec9 100644 --- a/codepot/README +++ b/codepot/README @@ -286,5 +286,6 @@ LICENSE Medium-editor https://github.com/yabwe/medium-editor/blob/master/LICENSE PDFJS https://github.com/mozilla/pdf.js WebODF http://webodf.org/ + ICONMONSTR Icons https://iconmonstr.com/ ------------------------------------------------------------------------ diff --git a/codepot/src/codepot/views/code_history.php b/codepot/src/codepot/views/code_history.php index cbbb677e..21351465 100644 --- a/codepot/src/codepot/views/code_history.php +++ b/codepot/src/codepot/views/code_history.php @@ -148,7 +148,9 @@ $this->load->view ( print ''; print ''; print ''; + print ''; + print ''; print '
'; if ($file['type'] == 'file') { @@ -159,8 +161,13 @@ $this->load->view ( '
' . $this->lang->line('Difference') . '
'); } + //print anchor ("code/revision/{$project->id}/{$xfullpath}/{$h['rev']}", + // '
' . $this->lang->line('Changes') . '
'); print anchor ("code/revision/{$project->id}/{$xfullpath}/{$h['rev']}", - '
' . $this->lang->line('Changes') . '
'); + sprintf('%s', base_url_make('/css/images/iconmonstr-script-4-240.png'), $this->lang->line('Changes'))); + print ' '; + print anchor ("code/file/{$project->id}/{$xfullpath}/{$h['rev']}", + sprintf('%s', base_url_make('/css/images/iconmonstr-sitemap-7-240.png'), $this->lang->line('Changes'))); print '
'; print ''; print ''; diff --git a/codepot/src/css/common.css b/codepot/src/css/common.css index aa33dcbc..b26c2700 100644 --- a/codepot/src/css/common.css +++ b/codepot/src/css/common.css @@ -1098,6 +1098,18 @@ a.codepot-buttoned-anchor:visited { color: #E9E9E9 !important; } +.codepot-buttoned-img-30 { + width: 30px; + height: 30px; + padding: 2px; + border: 1px solid #AAAAAA; + background-color: inherit; + opacity: 0.7; +} +.codepot-buttoned-img-30:hover { + background-color: #AAAAAA; +} + /* === list === */ ul.codepot-horizontal-list { clear: both; diff --git a/codepot/src/css/images/Makefile.am b/codepot/src/css/images/Makefile.am index cc29d987..ca30cb22 100644 --- a/codepot/src/css/images/Makefile.am +++ b/codepot/src/css/images/Makefile.am @@ -25,6 +25,8 @@ www_DATA = \ filexml.png \ folder.png \ html.png \ + iconmonstr-script-4-240.png \ + iconmonstr-sitemap-7-240.png \ i-node.png \ l-node.png \ log.png \ diff --git a/codepot/src/css/images/Makefile.in b/codepot/src/css/images/Makefile.in index c3ec14b5..a7ad35bf 100644 --- a/codepot/src/css/images/Makefile.in +++ b/codepot/src/css/images/Makefile.in @@ -170,6 +170,8 @@ www_DATA = \ filexml.png \ folder.png \ html.png \ + iconmonstr-script-4-240.png \ + iconmonstr-sitemap-7-240.png \ i-node.png \ l-node.png \ log.png \ diff --git a/codepot/src/css/images/iconmonstr-script-4-240.png b/codepot/src/css/images/iconmonstr-script-4-240.png new file mode 100644 index 0000000000000000000000000000000000000000..4f7d379d9da52a0e5b9b98cb580e94e71601d727 GIT binary patch literal 10230 zcmX9^1yEZ}*M_3S-K|*Bpe^ni+?^J8_oBs0a41$N?oud{1S{^v9Rd`JQ@l77`0xAu zcP7b9=H~A1*^_e~*;p+NC0r~jEF>f(T(Gjd4)A&Q-wP8Rc$d^a_>6?afCQG8(F;Hv zn`1ky>MuN>`tax3e9j)R`IRirng&LcgLBIHz$=2aZ`tb^*q^<@(%M@(pTNf zzv$Zg6?7u8=g&1-=+t04nyJ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