Skip to content

Commit

Permalink
[#688 state:resolved] Fixed major display problem on category listing…
Browse files Browse the repository at this point in the history
… screen caused by an earlier [sloppy change to mt-static/css/structure.css](0a662de#L22L4572) which rendered a number of contiguous styles completely invalid.  Also fixed a couple of typos in tmpl/cms/list_category.tmpl, one of which violated MT template syntax and the other which caused page validation errors.  Not sure what other effects these two problems had.
  • Loading branch information
jayallen committed Jan 20, 2011
1 parent c1f84f3 commit 5a4d6c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion mt-static/css/structure.css
Original file line number Diff line number Diff line change
Expand Up @@ -5073,7 +5073,11 @@ background: #C9E1EE;

.list-notification .create-inline,
.edit-template .create-inline,
.list-category .create-inline,
.list-category .create-inline {
padding: 8px 10px;
background-color: #cfc !important;
display: none;
}

.list-tag .create-inline {
display: table-row;
Expand Down
7 changes: 5 additions & 2 deletions tmpl/cms/list_category.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ TC.attachLoadEvent( init );

<mtapp:listing
hide_pager="1">
<mt:if __first__>
<input type="hidden" name="move_cat_id" value="" />
<mt:if name="__first__">
<thead>
<tr>
<th id="delete-col-head" class="cb"><input type="checkbox" name="id-head" value="all" class="select" /></th>
Expand All @@ -184,6 +183,9 @@ TC.attachLoadEvent( init );
<tr class="create-row create-inline" id="create-0">
<td class="move-col" colspan="2">&nbsp;</td>
<td colspan="4">
<mt:if name="__first__">
<input type="hidden" name="move_cat_id" value="" />
</mt:if>
<mt:setvarblock name="new_parent_label"><__trans phrase="New Parent [_1]" params="<mt:var name="object_label">"></mt:setvarblock>
<mtapp:setting
id="new-parent-category"
Expand Down Expand Up @@ -296,6 +298,7 @@ TC.attachLoadEvent( init );
</tbody>
</mt:if>
<mt:else>
<mt:ignore> NOTE: The else above is used by mtapp:listing. See POD for details</mt:ignore>
<mtapp:statusmsg id="zero-state" class="info zero-state">
<__trans phrase="No categories could be found.">
</mtapp:statusmsg>
Expand Down

0 comments on commit 5a4d6c9

Please sign in to comment.