webpages appearence

This commit is contained in:
Mario Vavti 2015-04-13 23:38:36 +02:00
parent 05f018e509
commit 865b602cf8
7 changed files with 114 additions and 42 deletions

View File

@ -127,7 +127,7 @@ function webpages_content(&$a) {
if($_REQUEST['pagetitle'])
$x['pagetitle'] = $_REQUEST['pagetitle'];
$o .= status_editor($a,$x);
$editor .= status_editor($a,$x);
// Get a list of webpages. We can't display all them because endless scroll makes that unusable,
// so just list titles and an edit link.
@ -161,14 +161,17 @@ function webpages_content(&$a) {
$o .= replace_macros(get_markup_template('webpagelist.tpl'), array(
'$listtitle' => t('Webpages'),
'$baseurl' => $url,
'$create' => t('Create'),
'$edit' => t('Edit'),
'$delete' => t('Delete'),
'$pages' => $pages,
'$channel' => $which,
'$editor' => $editor,
'$view' => t('View'),
'$preview' => t('Preview'),
'$actions_txt' => t('Actions'),
'$pagelink_txt' => t('Page Link'),
'$title_txt' => t('Title'),
'$title_txt' => t('Page Title'),
'$created_txt' => t('Created'),
'$edited_txt' => t('Edited')
));

View File

@ -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;
}

View File

@ -0,0 +1,3 @@
[region=aside]
[widget=design_tools][/widget]
[/region]

View File

@ -0,0 +1,3 @@
[region=aside]
[widget=design_tools][/widget]
[/region]

View File

@ -0,0 +1,3 @@
[region=aside]
[widget=design_tools][/widget]
[/region]

View File

@ -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

View File

@ -1,36 +1,57 @@
{{$listtitle}}
{{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>
{{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}}
</table>
</div>
<div class="clear"></div>
<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>&nbsp;{{$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 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 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>
{{/if}}