diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-04-13 23:38:36 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-04-13 23:38:36 +0200 |
commit | 865b602cf8b4eff5e7da00362df95e52e2fe4f77 (patch) | |
tree | 7d6cd6cbc2203d2c84c6bded4e80503327f91ac6 /view | |
parent | 05f018e50943fd2f38742b061c7e6f0e4b34995a (diff) | |
download | volse-hubzilla-865b602cf8b4eff5e7da00362df95e52e2fe4f77.tar.gz volse-hubzilla-865b602cf8b4eff5e7da00362df95e52e2fe4f77.tar.bz2 volse-hubzilla-865b602cf8b4eff5e7da00362df95e52e2fe4f77.zip |
webpages appearence
Diffstat (limited to 'view')
-rw-r--r-- | view/css/mod_webpages.css | 42 | ||||
-rw-r--r-- | view/pdl/mod_editblock.pdl | 3 | ||||
-rw-r--r-- | view/pdl/mod_editlayout.pdl | 3 | ||||
-rw-r--r-- | view/pdl/mod_editwebpage.pdl | 3 | ||||
-rw-r--r-- | view/theme/redbasic/css/style.css | 7 | ||||
-rw-r--r-- | view/tpl/webpagelist.tpl | 85 |
6 files changed, 106 insertions, 37 deletions
diff --git a/view/css/mod_webpages.css b/view/css/mod_webpages.css index 1b5a798cd..af1ef5357 100644 --- a/view/css/mod_webpages.css +++ b/view/css/mod_webpages.css @@ -1,6 +1,40 @@ -.webpage-list-table tr { - height: 20px; +#webpage-editor { + display: none; } -.webpage-list-table td { - padding: 5px; + +#webpage-list-table { + width: 100%; +} + +#webpage-list-table th:nth-child(1){ + white-space: nowrap; +} + +#webpage-list-table td:nth-child(1){ + padding: 7px 3px 7px 10px; + white-space: nowrap; +} +#webpage-list-table th:nth-child(5), +#webpage-list-table td:nth-child(5){ + padding: 7px 3px; + white-space: nowrap; +} + +#webpage-list-table th:nth-child(6), +#webpage-list-table td:nth-child(6){ + padding: 7px 10px 7px 7px; + white-space: nowrap; +} + +.webpage-list-tool { + padding: 7px 10px; +} + +/* this forces collapsed jot to appear expanded */ +.jothidden { + display: block !important; +} + +#profile-jot-text { + height: 200px; } diff --git a/view/pdl/mod_editblock.pdl b/view/pdl/mod_editblock.pdl new file mode 100644 index 000000000..cef69f194 --- /dev/null +++ b/view/pdl/mod_editblock.pdl @@ -0,0 +1,3 @@ +[region=aside] +[widget=design_tools][/widget] +[/region]
\ No newline at end of file diff --git a/view/pdl/mod_editlayout.pdl b/view/pdl/mod_editlayout.pdl new file mode 100644 index 000000000..cef69f194 --- /dev/null +++ b/view/pdl/mod_editlayout.pdl @@ -0,0 +1,3 @@ +[region=aside] +[widget=design_tools][/widget] +[/region]
\ No newline at end of file diff --git a/view/pdl/mod_editwebpage.pdl b/view/pdl/mod_editwebpage.pdl new file mode 100644 index 000000000..cef69f194 --- /dev/null +++ b/view/pdl/mod_editwebpage.pdl @@ -0,0 +1,3 @@ +[region=aside] +[widget=design_tools][/widget] +[/region]
\ No newline at end of file diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index e1b1b1e91..b03cdd4dc 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1922,10 +1922,15 @@ nav .dropdown-menu { } [id^="cloud-index-"]:hover td, -.cloud-index-active { +.cloud-index-active, { background-color: $item_colour; } +[id^="webpage-list-item"]:hover td { + background-color: $item_colour; +} + + nav ul li .undefined, nav ul li .notify-seen, nav ul li .notify-unseen diff --git a/view/tpl/webpagelist.tpl b/view/tpl/webpagelist.tpl index 4e1bc3d57..4e5b3e0e4 100644 --- a/view/tpl/webpagelist.tpl +++ b/view/tpl/webpagelist.tpl @@ -1,36 +1,57 @@ -{{$listtitle}} +<div class="section-title-wrapper"> + {{if $editor}} + <div class="pull-right"> + <button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('webpage-editor');"><i class="icon-edit"></i> {{$create}}</button> + </div> + {{/if}} + <h2>{{$listtitle}}</h2> + <div class="clear"></div> +</div> +{{if $editor}} +<div id="webpage-editor" class="section-content-tools-wrapper form-group"> + {{$editor}} +</div> +{{/if}} {{if $pages}} - - <div id="pagelist-content-wrapper" class="generic-content-wrapper-styled"> - <table class="webpage-list-table"> - <tr><td>{{$actions_txt}}</td><td>{{$pagelink_txt}}</td><td>{{$title_txt}}</td><td>{{$created_txt}}</td><td>{{$edited_txt}}</td></tr> +<div id="pagelist-content-wrapper" class="generic-content-wrapper-styled"> + <table id="webpage-list-table"> + <tr> + <th width="1%">{{$pagelink_txt}}</th> + <th width="95%">{{$title_txt}}</th> + <th width="1%"></th> + <th width="1%"></th> + <th width="1%" class="hidden-xs">{{$created_txt}}</th> + <th width="1%" class="hidden-xs">{{$edited_txt}}</th> + </tr> {{foreach $pages as $key => $items}} - {{foreach $items as $item}} - <tr> - <td> - {{if $edit}}<a href="{{$baseurl}}/{{$item.url}}" title="{{$edit}}" class="btn btn-default"><i class="icon-pencil"></i></a> {{/if}} - </td> - <td> - {{if $view}}<a href="page/{{$channel}}/{{$item.pagetitle}}" title="{{$view}}">{{$item.pagetitle}}</a> - {{else}}{{$item.pagetitle}} - {{/if}} - </td> - <td> - {{$item.title}} - </td> - <td> - {{$item.created}} - </td> - <td> - {{$item.edited}} - </td> - </tr> - {{/foreach}} + {{foreach $items as $item}} + <tr id="webpage-list-item-{{$item.url}}"> + <td> + {{if $view}} + <a href="page/{{$channel}}/{{$item.pagetitle}}" title="{{$view}}">{{$item.pagetitle}}</a> + {{else}} + {{$item.pagetitle}} + {{/if}} + </td> + <td> + {{$item.title}} + </td> + <td class="webpage-list-tool"> + {{if $edit}}<a href="{{$baseurl}}/{{$item.url}}" title="{{$edit}}"><i class="icon-pencil"></i></a>{{/if}} + </td> + <td class="webpage-list-tool"> + {{if $edit}}<a href="#" title="{{$delete}}" onclick="dropItem('item/drop/{{$item.url}}', '#webpage-list-item-{{$item.url}}'); return false;"><i class="icon-trash drop-icons"></i></a>{{/if}} + </td> + <td class="hidden-xs"> + {{$item.created}} + </td> + <td class="hidden-xs"> + {{$item.edited}} + </td> + </tr> + {{/foreach}} {{/foreach}} - - </table> - </div> - - <div class="clear"></div> - + </table> +</div> +<div class="clear"></div> {{/if}} |