webpages appearence
This commit is contained in:
parent
05f018e509
commit
865b602cf8
@ -127,7 +127,7 @@ function webpages_content(&$a) {
|
|||||||
if($_REQUEST['pagetitle'])
|
if($_REQUEST['pagetitle'])
|
||||||
$x['pagetitle'] = $_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,
|
// 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.
|
// 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(
|
$o .= replace_macros(get_markup_template('webpagelist.tpl'), array(
|
||||||
'$listtitle' => t('Webpages'),
|
'$listtitle' => t('Webpages'),
|
||||||
'$baseurl' => $url,
|
'$baseurl' => $url,
|
||||||
|
'$create' => t('Create'),
|
||||||
'$edit' => t('Edit'),
|
'$edit' => t('Edit'),
|
||||||
|
'$delete' => t('Delete'),
|
||||||
'$pages' => $pages,
|
'$pages' => $pages,
|
||||||
'$channel' => $which,
|
'$channel' => $which,
|
||||||
|
'$editor' => $editor,
|
||||||
'$view' => t('View'),
|
'$view' => t('View'),
|
||||||
'$preview' => t('Preview'),
|
'$preview' => t('Preview'),
|
||||||
'$actions_txt' => t('Actions'),
|
'$actions_txt' => t('Actions'),
|
||||||
'$pagelink_txt' => t('Page Link'),
|
'$pagelink_txt' => t('Page Link'),
|
||||||
'$title_txt' => t('Title'),
|
'$title_txt' => t('Page Title'),
|
||||||
'$created_txt' => t('Created'),
|
'$created_txt' => t('Created'),
|
||||||
'$edited_txt' => t('Edited')
|
'$edited_txt' => t('Edited')
|
||||||
));
|
));
|
||||||
|
@ -1,6 +1,40 @@
|
|||||||
.webpage-list-table tr {
|
#webpage-editor {
|
||||||
height: 20px;
|
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;
|
||||||
}
|
}
|
||||||
|
3
view/pdl/mod_editblock.pdl
Normal file
3
view/pdl/mod_editblock.pdl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[region=aside]
|
||||||
|
[widget=design_tools][/widget]
|
||||||
|
[/region]
|
3
view/pdl/mod_editlayout.pdl
Normal file
3
view/pdl/mod_editlayout.pdl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[region=aside]
|
||||||
|
[widget=design_tools][/widget]
|
||||||
|
[/region]
|
3
view/pdl/mod_editwebpage.pdl
Normal file
3
view/pdl/mod_editwebpage.pdl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[region=aside]
|
||||||
|
[widget=design_tools][/widget]
|
||||||
|
[/region]
|
@ -1922,10 +1922,15 @@ nav .dropdown-menu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[id^="cloud-index-"]:hover td,
|
[id^="cloud-index-"]:hover td,
|
||||||
.cloud-index-active {
|
.cloud-index-active, {
|
||||||
background-color: $item_colour;
|
background-color: $item_colour;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[id^="webpage-list-item"]:hover td {
|
||||||
|
background-color: $item_colour;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
nav ul li .undefined,
|
nav ul li .undefined,
|
||||||
nav ul li .notify-seen,
|
nav ul li .notify-seen,
|
||||||
nav ul li .notify-unseen
|
nav ul li .notify-unseen
|
||||||
|
@ -1,36 +1,57 @@
|
|||||||
{{$listtitle}}
|
<div class="section-title-wrapper">
|
||||||
{{if $pages}}
|
{{if $editor}}
|
||||||
|
<div class="pull-right">
|
||||||
<div id="pagelist-content-wrapper" class="generic-content-wrapper-styled">
|
<button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('webpage-editor');"><i class="icon-edit"></i> {{$create}}</button>
|
||||||
<table class="webpage-list-table">
|
</div>
|
||||||
<tr><td>{{$actions_txt}}</td><td>{{$pagelink_txt}}</td><td>{{$title_txt}}</td><td>{{$created_txt}}</td><td>{{$edited_txt}}</td></tr>
|
{{/if}}
|
||||||
{{foreach $pages as $key => $items}}
|
<h2>{{$listtitle}}</h2>
|
||||||
{{foreach $items as $item}}
|
<div class="clear"></div>
|
||||||
<tr>
|
</div>
|
||||||
<td>
|
{{if $editor}}
|
||||||
{{if $edit}}<a href="{{$baseurl}}/{{$item.url}}" title="{{$edit}}" class="btn btn-default"><i class="icon-pencil"></i></a> {{/if}}
|
<div id="webpage-editor" class="section-content-tools-wrapper form-group">
|
||||||
</td>
|
{{$editor}}
|
||||||
<td>
|
</div>
|
||||||
{{if $view}}<a href="page/{{$channel}}/{{$item.pagetitle}}" title="{{$view}}">{{$item.pagetitle}}</a>
|
{{/if}}
|
||||||
{{else}}{{$item.pagetitle}}
|
{{if $pages}}
|
||||||
{{/if}}
|
<div id="pagelist-content-wrapper" class="generic-content-wrapper-styled">
|
||||||
</td>
|
<table id="webpage-list-table">
|
||||||
<td>
|
<tr>
|
||||||
{{$item.title}}
|
<th width="1%">{{$pagelink_txt}}</th>
|
||||||
</td>
|
<th width="95%">{{$title_txt}}</th>
|
||||||
<td>
|
<th width="1%"></th>
|
||||||
{{$item.created}}
|
<th width="1%"></th>
|
||||||
</td>
|
<th width="1%" class="hidden-xs">{{$created_txt}}</th>
|
||||||
<td>
|
<th width="1%" class="hidden-xs">{{$edited_txt}}</th>
|
||||||
{{$item.edited}}
|
</tr>
|
||||||
</td>
|
{{foreach $pages as $key => $items}}
|
||||||
</tr>
|
{{foreach $items as $item}}
|
||||||
{{/foreach}}
|
<tr id="webpage-list-item-{{$item.url}}">
|
||||||
{{/foreach}}
|
<td>
|
||||||
|
{{if $view}}
|
||||||
</table>
|
<a href="page/{{$channel}}/{{$item.pagetitle}}" title="{{$view}}">{{$item.pagetitle}}</a>
|
||||||
</div>
|
{{else}}
|
||||||
|
{{$item.pagetitle}}
|
||||||
<div class="clear"></div>
|
{{/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}}
|
{{/if}}
|
||||||
|
Reference in New Issue
Block a user