Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
ENH: Refs #0299. Add a horizontal rule between global actions and fol…
Browse files Browse the repository at this point in the history
…er/item specific actions.

Remove the arbitrary horizontal rule among folder/item actions.
  • Loading branch information
yuzhengZ committed Oct 31, 2011
1 parent da9b9ba commit 71cd013
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
9 changes: 8 additions & 1 deletion core/public/css/layout/view.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ div.viewSideBar div.sideElement{
div.viewSideBar div.sideElementFirst{
border-top:none !important;
border-bottom: 1px solid white;
padding-bottom: 5px;
}

div.viewSideBar div.sideElementActions{
border-top:1px solid #DAD8D4;
border-bottom: 1px solid white;
padding-top: 5px;
padding-bottom: 10px;
}

Expand All @@ -92,7 +99,7 @@ div.viewSideBar div.sideElementLast{
border-top: 1px solid #DAD8D4;
}

div.viewSideBar div.sideElement ul,div.viewSideBar div.sideElementFirst ul,div.viewSideBar div.sideElementLast ul{
div.viewSideBar div.sideElement ul,div.viewSideBar div.sideElementFirst ul, div.viewSideBar div.sideElementActions ul, div.viewSideBar div.sideElementLast ul{
list-style:none;
margin:0;
padding: 0;
Expand Down
4 changes: 1 addition & 3 deletions core/public/js/common/common.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
$('div.viewAction ul').fadeOut('fast',function()
{
$('div.viewAction ul').html('');
var html='';
var html='';
if(type=='community')
{
html+='<li><img alt="" src="'+json.global.coreWebroot+'/public/images/icons/view.png"/> <a href="'+json.global.webroot+'/community/'+element+'">'+json.browse.view+'</a></li>';
Expand All @@ -216,7 +216,6 @@

if(policy>=1)
{
html+='<hr/>';
html+='<li><img alt="" src="'+json.global.coreWebroot+'/public/images/FileTree/directory.png"/> <a onclick="createNewFolder('+element+');">'+json.browse.createFolder+'</a></li>';
html+='<li><img alt="" src="'+json.global.coreWebroot+'/public/images/icons/upload.png"/> <a rel="'+json.global.webroot+'/upload/simpleupload/?parent='+element+'" class="uploadInFolder">'+json.browse.uploadIn+'</a></li>';
html+='<li><img alt="" src="'+json.global.coreWebroot+'/public/images/icons/edit.png"/> <a onclick="editFolder('+element+');">'+json.browse.edit+'</a></li>';
Expand All @@ -233,7 +232,6 @@
html+='<li><img alt="" src="'+json.global.coreWebroot+'/public/images/icons/download.png"/> <a href="'+json.global.webroot+'/download?items='+element+'">'+json.browse.downloadLastest+'</a></li>';
if(policy>=1)
{
html+='<hr/>';
html+='<li><img alt="" src="'+json.global.coreWebroot+'/public/images/icons/share.png"/> <a type="item" element="'+element+'" class="sharingLink">'+json.browse.share+'</a></li>';
html+='<li class="removeItemLi"><img alt="" src="'+json.global.coreWebroot+'/public/images/icons/close.png"/> <a onclick="removeItem('+element+');">'+json.browse['removeItem']+'</a></li>';
}
Expand Down
2 changes: 1 addition & 1 deletion core/views/community/view.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ foreach($this->customCSSs as $Uris)
?>
</div>

<div class="sideElementFirst viewAction">
<div class="sideElementActions viewAction">
<ul>
<li>

Expand Down
2 changes: 1 addition & 1 deletion core/views/user/userpage.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ $this->headScript()->appendFile($this->coreWebroot.'/public/js/common/common.bro
?>


<div class="sideElementFirst viewAction">
<div class="sideElementActions viewAction">
<ul>
<li>

Expand Down

0 comments on commit 71cd013

Please sign in to comment.