Hide actions in management tables, show on hover; improve comments table; fix "Configure" link position on dashboard, fixes #8386

git-svn-id: https://develop.svn.wordpress.org/trunk@9934 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-11-28 04:33:35 +00:00
parent 3407b4e674
commit 653a3c3c4d
8 changed files with 56 additions and 20 deletions

View File

@ -8,7 +8,7 @@
?>
<div class="clear"></div></div><!-- wpbody-content -->
</div><!-- wpbody -->
<div class="clear"></div></div><!-- wpbody -->
<div class="clear"></div></div><!-- wpcontent -->
</div><!-- wpwrap -->

View File

@ -79,10 +79,8 @@ div.postbox div.inside {
#dashboard-widgets h3 a {
text-decoration: underline;
float: right;
position: relative;
right: 5px;
top: -12px;
position: absolute;
right: 30px;
}
#dashboard-widgets h4 {
@ -272,8 +270,8 @@ div.postbox div.inside {
display: block;
}
#the-comment-list .comment-item p.comment-actions {
margin: 3px 0 0 0;
#the-comment-list .comment-item p.row-actions {
margin: 3px 0 0;
padding: 0;
font-size: 10px;
}

View File

@ -327,7 +327,7 @@ h6 {
}
.widefat td {
padding: 5px 7px;
padding: 7px 7px 5px;
vertical-align: top;
}
@ -397,8 +397,8 @@ h6 {
.wrap h2 {
font: italic normal normal 24px/29px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
margin: 13px 0 0 0;
padding: 0 15px 1px 0;
margin: 0;
padding: 15px 15px 3px 0;
line-height: 35px;
text-shadow: rgba(255,255,255,1) 0px 1px 0px;
}

View File

@ -55,7 +55,10 @@ div#dashboard-widgets {
#dashboard_plugins h3.hndle {
direction: rtl;
}
#dashboard_incoming_links ul li, #dashboard_secondary ul li, #dashboard_primary ul li, p.comment-actions {
#dashboard_incoming_links ul li,
#dashboard_secondary ul li,
#dashboard_primary ul li,
p.row-actions {
width: 100%;
}
#favorite-inside {

View File

@ -179,6 +179,15 @@ ul#adminmenu {
}
/* end Inline Editor */
* html .row-actions {
visibility: visible;
}
#dashboard-widgets h3 a {
height: 20px;
line-height: 20px;
}
#titlediv #title {
width: 98%;
}

View File

@ -495,7 +495,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
<?php endif; // comment_type ?>
<blockquote><p><?php comment_excerpt(); ?></p></blockquote>
<p class="comment-actions"><?php echo $actions_string; ?></p>
<p class="row-actions"><?php echo $actions_string; ?></p>
<div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
<textarea class="comment" rows="3" cols="10"><?php echo $comment->comment_content; ?></textarea>

View File

@ -126,11 +126,13 @@ function _cat_row( $category, $level, $name_override = false ) {
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("categories.php?action=delete&amp;cat_ID=$category->term_id", 'delete-category_' . $category->term_id) . "' onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this category '%s'\n 'Cancel' to stop, 'OK' to delete."), $name )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
$action_count = count($actions);
$i = 0;
$edit .= '<div class="row-actions">';
foreach ( $actions as $action => $link ) {
++$i;
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
$edit .= "<span class='$action'>$link$sep</span>";
}
$edit .= '</div>';
} else {
$edit = $name;
}
@ -288,11 +290,13 @@ function link_cat_row( $category, $name_override = false ) {
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("link-category.php?action=delete&amp;cat_ID=$category->term_id", 'delete-link-category_' . $category->term_id) . "' onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this category '%s'\n 'Cancel' to stop, 'OK' to delete."), $name )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
$action_count = count($actions);
$i = 0;
$edit .= '<div class="row-actions">';
foreach ( $actions as $action => $link ) {
++$i;
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
$edit .= "<span class='$action'>$link$sep</span>";
}
$edit .= '</div>';
} else {
$edit = $name;
}
@ -605,11 +609,13 @@ function _tag_row( $tag, $class = '' ) {
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("edit-tags.php?action=delete&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id) . "' onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this tag '%s'\n 'Cancel' to stop, 'OK' to delete."), $name )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
$action_count = count($actions);
$i = 0;
$out .= '<div class="row-actions">';
foreach ( $actions as $action => $link ) {
++$i;
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
$out .= "<span class='$action'>$link$sep</span>";
}
$out .= '</div>';
$out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
$out .= '<div class="name">' . $qe_data->name . '</div>';
$out .= '<div class="slug">' . $qe_data->slug . '</div></div></td>';
@ -1372,11 +1378,13 @@ function _post_row($a_post, $pending_comments, $mode) {
$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';
$action_count = count($actions);
$i = 0;
echo '<div class="row-actions">';
foreach ( $actions as $action => $link ) {
++$i;
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
echo "<span class='$action'>$link</span>$sep";
}
echo '</div>';
get_inline_data($post);
?>
@ -1555,12 +1563,15 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
else
$actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';
$action_count = count($actions);
$i = 0;
echo '<div class="row-actions">';
foreach ( $actions as $action => $link ) {
++$i;
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
echo "<span class='$action'>$link$sep</span>";
}
echo '</div>';
get_inline_data($post);
echo '</td>';
@ -1784,11 +1795,13 @@ function user_row( $user_object, $style = '', $role = '' ) {
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("users.php?action=delete&amp;user=$user_object->ID", 'bulk-users') . "'>" . __('Delete') . "</a>";
$action_count = count($actions);
$i = 0;
$edit .= '<div class="row-actions">';
foreach ( $actions as $action => $link ) {
++$i;
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
$edit .= "<span class='$action'>$link$sep</span>";
}
$edit .= '</div>';
} else {
$edit = '<strong>' . $user_object->user_login . '</strong>';
}
@ -2008,6 +2021,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
$actions = apply_filters( 'comment_row_actions', $actions, $comment );
$i = 0;
echo '<div class="row-actions">';
foreach ( $actions as $action => $link ) {
++$i;
( ( ('approve' == $action || 'unapprove' == $action) && 2 === $i ) || 1 === $i ) ? $sep = '' : $sep = ' | ';
@ -2018,6 +2032,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
echo "<span class='$action'>$sep$link</span>";
}
echo '</div>';
}
echo '</td>';

View File

@ -724,7 +724,7 @@ p.pagenav {
}
.column-comment p {
margin-top: 0;
margin: 0.6em 0;
}
.column-author img, .column-username img {
@ -817,6 +817,15 @@ a.view-comment-post-link {
text-decoration: underline;
}
.row-actions {
visibility: hidden;
}
tr:hover .row-actions,
div.comment-item:hover .row-actions {
visibility: visible;
}
/* Admin Header */
#wphead-info {
margin: 0 0 0 15px;
@ -2010,13 +2019,15 @@ td.post-title strong {
}
td.post-title p {
margin: 0;
margin: 6px 0;
}
/* Global classes */
.wp-hidden-children .wp-hidden-child { display: none; }
.ui-tabs-hide { display: none; }
.wp-hidden-children .wp-hidden-child,
.ui-tabs-hide {
display: none;
}
.commentlist .avatar {
vertical-align: text-top;
@ -3097,9 +3108,9 @@ table.fixed {
width: 80px;
}
.fixed .comments .column-author,
#commentstatusdiv .fixed .column-date,
#commentstatusdiv .fixed .column-author {
#commentstatusdiv .fixed .column-author,
#comments-form .fixed .column-author,
#commentstatusdiv .fixed .column-date {
width: 20%;
}
@ -3115,6 +3126,6 @@ table.fixed {
.icon32 {
float: left;
height: 36px;
margin: 0 6px 0 0;
margin: 12px 6px 0 0;
width: 36px;
}