From: paul Date: Wed, 20 Jan 2016 12:21:01 +0000 (+0000) Subject: improved embedded view and tag editing X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=8d001b4467b644b462faabdf75d8f6af50c4e2ae;p=serve0 improved embedded view and tag editing svn path=/trunk/; revision=99 --- diff --git a/pages/view.sh b/pages/view.sh index 97b8e37..689d6c1 100755 --- a/pages/view.sh +++ b/pages/view.sh @@ -1,6 +1,6 @@ #!/bin/zsh -# Copyright 2014, 2015 Paul Hänsch +# Copyright 2014 - 2016 Paul Hänsch # # This file is part of Serve0. # @@ -17,8 +17,7 @@ # You should have received a copy of the GNU Affero General Public License # along with Serve0. If not, see . -. $_EXEC/pages/list.sh -. $_EXEC/pages/tree.sh +. $_EXEC/pages/common.sh info="${_GET[i]}" location="$(invalidate "${_GET[l]}" '(.*/)?\.\.(/.*)?|' /)" diff --git a/templates/common.css.sh b/templates/common.css.sh index cfc84e7..adf78cd 100755 --- a/templates/common.css.sh +++ b/templates/common.css.sh @@ -1,4 +1,4 @@ -# Copyright 2014, 2015 Paul Hänsch +# Copyright 2014 - 2016 Paul Hänsch # # This file is part of Serve0 # @@ -289,41 +289,14 @@ a.panel { } .panel#preferences > input { display: block; } -#videoview a.panel { - position: absolute; - right: 1em; - width: auto; - border: none; -} -#videoview .video { +#videoview h1, #videoview > a { display: inline-block; - width: 60%; - vertical-align: top; -} -#videoview .video * { - display: block; -} -#videoview .videoinfo { - width: 39%; - margin-top: 2em; + margin-right: 1em; } -#videoview .videoinfo h2 { - display: inline; -} -#videoview .videoinfo .meta:after { - content: "\A"; - white-space: pre; -} -#videoview .videoinfo .label { - display: block; - margin-top: 1em; -} -#videoview .videoinfo .info.description { +#videoview video { display: block; - background-color: #DDF; -} -#videoview .videoinfo .edit { - width: 100% + margin: 0; + width: 100%; } EOF diff --git a/templates/view.html.sh b/templates/view.html.sh index c92db05..85f3e9a 100755 --- a/templates/view.html.sh +++ b/templates/view.html.sh @@ -1,4 +1,4 @@ -# Copyright 2014, 2015 Paul Hänsch +# Copyright 2014 - 2016 Paul Hänsch # # This file is part of Serve0 # @@ -28,7 +28,7 @@ cat < Clear All - Advanced + Dismiss
@@ -38,72 +38,61 @@ cat < -
- Dismiss -

$info

- -
- Full - -
- -
- -
- - - $(($length / 60)):$(($length % 60)) min - Width: $width - Height: $height
- - - $(echo "$tags" |sed -r 's:\|*([^|]+)\|*:\1:g') - ${description:+$(echo -E "$description" |_wiki)} -
-
- -
- -
- - - - - - - $(($length / 60)):$(($length % 60)) min - Width: $width - Height: $height - - Tags: - - - - - +
+

$info

+ + Download + + + $(($length / 60)):$(($length % 60)) min + Width: $width + Height: $height
+ + + $(echo "$tags" |sed -r 's:\|*([^|]+)\|*:\1:g') + ${description:+$(echo -E "$description" |_wiki)} + + + + + + + $( + for cat in $(list_categories); do + printf '

' + done + ) + +

+ + +

+

- + +

+ + - - - - -
-
+ Hide -
-
    - $([ -n "$info" ] && thumblist || filelist) -
-
+ +