From 13b6e06943b8cb44bb246e1d57856ed3574f6184 Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Sun, 23 Mar 2014 16:20:47 +0800 Subject: 404 and 500 page ui --- public/img/404.png | Bin 0 -> 9776 bytes public/img/500.png | Bin 0 -> 12087 bytes templates/status/404.tmpl | 5 +++-- templates/status/500.tmpl | 5 ++++- 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 public/img/404.png create mode 100644 public/img/500.png diff --git a/public/img/404.png b/public/img/404.png new file mode 100644 index 00000000..1f0ee0ef Binary files /dev/null and b/public/img/404.png differ diff --git a/public/img/500.png b/public/img/500.png new file mode 100644 index 00000000..2c122fde Binary files /dev/null and b/public/img/500.png differ diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl index 4e836b22..c2cafe0c 100644 --- a/templates/status/404.tmpl +++ b/templates/status/404.tmpl @@ -1,7 +1,8 @@ {{template "base/head" .}} {{template "base/navbar" .}} -
-

This page is not found !

+
+

404

+

Application Version: {{AppVer}}

{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/status/500.tmpl b/templates/status/500.tmpl index 9a00eb1f..f3cd24d6 100644 --- a/templates/status/500.tmpl +++ b/templates/status/500.tmpl @@ -1,7 +1,10 @@ {{template "base/head" .}} {{template "base/navbar" .}} -
+
+

404

+

An error is occurred : {{.ErrorMsg}}

+

Application Version: {{AppVer}}

{{template "base/footer" .}} \ No newline at end of file -- cgit v1.2.3 From 406afa3c32eab4782291ca01eea273f2df25748d Mon Sep 17 00:00:00 2001 From: slene Date: Sun, 23 Mar 2014 17:22:14 +0800 Subject: markdown img max-width --- public/css/markdown.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/css/markdown.css b/public/css/markdown.css index a810fa3c..9f4024ba 100644 --- a/public/css/markdown.css +++ b/public/css/markdown.css @@ -175,6 +175,10 @@ margin-bottom: 0; } +.markdown img { + max-width: 100%; +} + .markdown .btn { color: #fff; } -- cgit v1.2.3 From c9e830cefb3b19593e7de05c785efdd93a0982d6 Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Sun, 23 Mar 2014 17:36:12 +0800 Subject: fix dropdown close bug --- public/js/app.js | 2 +- templates/repo/nav.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index df755727..e0f92854 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -98,7 +98,7 @@ var Gogits = { }; // fix dropdown inside click Gogits.initDropDown = function(){ - $('.dropdown-menu').on('click','a,button,input,select',function(e){ + $('.dropdown-menu.no-propagation').on('click',function(e){ e.stopPropagation(); }); }; diff --git a/templates/repo/nav.tmpl b/templates/repo/nav.tmpl index cf1b7d03..4d939e25 100644 --- a/templates/repo/nav.tmpl +++ b/templates/repo/nav.tmpl @@ -18,7 +18,7 @@ -