From 2573452c5f36ca8bb60988303a0ee384d2e1c460 Mon Sep 17 00:00:00 2001 From: Byrne Reese Date: Mon, 7 Feb 2011 00:09:22 -0800 Subject: [PATCH] [#703 state:resolved] Fixed and confirmed proper styling of compact, minimal and expanded view modes for list pages and list entries. --- mt-static/css/structure.css | 15 +++++++++++++++ tmpl/cms/include/entry_table.tmpl | 16 ++++++++++++---- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/mt-static/css/structure.css b/mt-static/css/structure.css index 7e4e2d76d..c52ba1cc1 100644 --- a/mt-static/css/structure.css +++ b/mt-static/css/structure.css @@ -2472,9 +2472,20 @@ optgroup option { } .page-listing-table, .entry-listing-table { + /* TODO - eliminate need for !important */ margin-left: -28px !important; width: 730px !important; } + +.power-edit .page-listing-table, +.power-edit .entry-listing-table { + margin-left: 0px !important; +} + +.listing.power-edit { + width: 870px !important; +} + .listing thead tr { background: none; } @@ -2513,6 +2524,10 @@ optgroup option { .entry-listing-table .date { text-align: right; } +.power-edit .page-listing-table .date, +.power-edit .entry-listing-table .date { + text-align: left; +} .page-listing-table .extra .actions, .entry-listing-table .extra .actions { font-size: 1.2em; diff --git a/tmpl/cms/include/entry_table.tmpl b/tmpl/cms/include/entry_table.tmpl index 5e02545fc..33053a957 100644 --- a/tmpl/cms/include/entry_table.tmpl +++ b/tmpl/cms/include/entry_table.tmpl @@ -52,11 +52,13 @@ - <$mt:setvar name="hide_pager" value="1"$> + <$mt:var name="hide_pager" value="1"$> + <$mt:var name="listing_class" value="power-edit"$> + hide_pager="$hide_pager" + listing_class="$listing_class"> @@ -72,11 +74,11 @@ <__trans phrase="Title"> - si"> + si"> images/icon_comment.png" alt="<__trans phrase="Status">" title="<__trans phrase="Status">" width="16" height="16" /> - + <__trans phrase="Folder"><__trans phrase="Category"> <__trans phrase="Author"> @@ -149,15 +151,19 @@ + <$mt:var name="comment_count" default="0"$>- + oddeven slave"> +       ?__mode=view&_type=&id=<$mt:var name="id"$>&blog_id=<$mt:var name="blog_id"$>"><__trans phrase="Edit Entry"><__trans phrase="Edit Page">  + <$mt:var name="comment_count" default="0"$>- @@ -204,6 +210,7 @@ + oddeven slave">   @@ -226,6 +233,7 @@ +