Skip to content

Commit

Permalink
Display more list information for small viewports
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesypoof committed Aug 29, 2016
1 parent 5e2704a commit 4685784
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 6 deletions.
6 changes: 3 additions & 3 deletions couch/edit-drafts.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,24 +108,24 @@ function _default_list_fields(){
array(
'weight'=>'0',
'header'=>$FUNCS->t('original_page'),
'class'=>'title align_bottom',
'class'=>'original-page',
'content'=>"<cms:render 'list_title' />",
);

$arr_fields['k_page_foldertitle'] =
array(
'weight'=>'20',
'header'=>$FUNCS->t('template'),
'class'=>'folder',
'class'=>'template',
'content'=>"<cms:render 'list_template' />",
);

$arr_fields['k_page_date'] =
array(
'weight'=>'30',
'header'=>$FUNCS->t('modified'),
'class'=>'modified',
'content'=>"<cms:render 'list_mod_date' />",
'class'=>'date drafts',
);

$arr_fields['k_actions'] =
Expand Down
2 changes: 2 additions & 0 deletions couch/edit-folders.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,14 @@ function _default_list_fields(){
array(
'weight'=>'20',
'header'=>$FUNCS->t('name'),
'class'=>'folder-name',
);

$arr_fields['k_folder_pagecount'] =
array(
'weight'=>'30',
'header'=>$FUNCS->t('pages'),
'class'=>'pages-count',
);

$arr_fields['k_actions'] =
Expand Down
2 changes: 1 addition & 1 deletion couch/edit-users.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function _default_list_fields(){
'weight'=>'0',
'header'=>$FUNCS->t('name'),
'content'=>"<cms:render 'list_title' />",
'class'=>'user_name',
'class'=>'user-name',
);

$arr_fields['title'] =
Expand Down
2 changes: 1 addition & 1 deletion couch/theme/_system/comment_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<p><cms:show k_comment /></p>

<div class="comment-details">
<cms:date k_comment_date format='M jS Y' /> at <cms:date k_comment_date format='h:iA' />&nbsp;&nbsp;|&nbsp;&nbsp;<cms:hide>
<cms:date k_comment_date format='M jS Y' /> @ <cms:date k_comment_date format='h:iA' />&nbsp;&nbsp;|&nbsp;&nbsp;<cms:hide>
</cms:hide><a href="<cms:show k_view_link />"><cms:show k_comment_page_name /></a>&nbsp;&nbsp;|&nbsp;&nbsp;<cms:hide>
</cms:hide><a href="http://www.ip-tracker.org/locator/ip-lookup.php?ip=<cms:show k_comment_author_ip_addr />" target="_blank"><cms:show k_comment_author_ip_addr /></a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion couch/theme/_system/includes/admin/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ input.input-hint,textarea.input-hint{position:relative;border-radius:3px 3px 0 0
.th-collapsed{display:none;}
.details{display:none;line-height:16px;padding:0;margin-top:2px;list-style-type:none;font-size:11px;}
.details>li{padding-left:1px;}
.details>li:before{content:"\2013";position:relative;top:-1px;margin-right:8px;color:#777;}
.details>li:before{content:"\2013";position:relative;top:-1px;margin-right:6px;color:#777;}
.details>li>strong{color:#333;}
.details>li>.label{display:inline;}
.details>li>a,.nested-link,.table>tbody>tr>td>a{color:#333;}
Expand Down
34 changes: 34 additions & 0 deletions couch/theme/_system/list_row.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
<cms:admin_list_fields>
<td class="col-<cms:show k_field_class />">
<cms:show k_field_content />

<cms:if k_field_class == 'title' >
<ul class="details">
<cms:if k_count_drafts >
<li>
<strong><cms:localize 'drafts' />:</strong>
<cms:show k_count_drafts />
</li>
</cms:if>

<cms:if k_comments_count >
<li>
<strong><cms:localize 'comments' />:</strong>
<cms:show k_comments_count />
</li>
</cms:if>

<cms:if k_page_foldertitle >
<li>
<strong><cms:localize 'folder' />:</strong>
<cms:show k_page_foldertitle />
</li>
</cms:if>

<li>
<strong><cms:localize 'date' />:</strong>
<cms:if k_page_date == '0000-00-00 00:00:00' >
<span class="label label-error"><cms:localize 'unpublished' /></span>
<cms:else />
<cms:date k_page_date format='M jS Y' />
</cms:if>
</li>
</ul>
</cms:if>
</td>
</cms:admin_list_fields>

0 comments on commit 4685784

Please sign in to comment.