1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2024-12-02 06:24:11 +01:00
The edit button come besides title + url
This commit is contained in:
raghunayyar 2012-11-07 02:16:56 +05:30 committed by Brice Maron
parent 2462d34a42
commit 4b7fd9ab1d
2 changed files with 18 additions and 8 deletions

View File

@ -66,11 +66,13 @@ input.disabled, input.disabled:hover {
.bookmark_actions span { margin: 0 0.4em; }
.bookmark_actions img { opacity: 0.3; }
.bookmark_actions img:hover { opacity: 1; cursor: pointer; }
.bookmark_edit img {opacity:0.3;}
.bookmark_edit img:hover {cursor: pointer; opacity: 1;}
.bookmark_single {
position: relative;
min-height: 3em;
padding: 0.5em 1em;
min-height: 3em;
border-bottom: 1px solid #DDD;
-webkit-transition:background-color 500ms; -moz-transition:background-color 500ms; -o-transition:background-color 500ms; transition:background-color 500ms;
}
@ -237,7 +239,7 @@ li:hover em { display : none; }
}
.bookmark_desc{
/* height: 1.5em; */
height: 1.5em;
padding-left:1em;
white-space:nowrap;
text-overflow:ellipsis;
@ -253,6 +255,14 @@ li:hover em { display : none; }
margin-right: 0.2em;
}
/*
.bm_view_img .bookmark_single:hover .bookmark_url{
display:block;
}
.bm_view_img .bookmark_single .bookmark_url{
display:block;
}
*/
.bookmark_single:hover .bookmark_url { display: inline; }
.bookmark_single:hover .bookmark_url a[href]{ color:gray; }

View File

@ -1,10 +1,6 @@
<script type="text/html" id="item_tmpl">
<div class="bookmark_single" data-id="<%= id %>">
<p class="bookmark_actions">
<span class="bookmark_edit">
<img class="svg" src="<?php echo OCP\image_path("", "actions/rename.svg");?>"
title="<?php echo $l->t('Edit');?>">
</span>
<span class="bookmark_delete">
<img class="svg" src="<?php echo OCP\image_path("", "actions/delete.svg");?>"
title="<?php echo $l->t('Delete');?>">
@ -13,15 +9,19 @@
<p class="bookmark_title">
<a href="<%= encodeEntities(url) %>" target="_blank" class="bookmark_link">
<%= encodeEntities(title == '' ? url : title ) %>
</a>
</a>
</p>
<p class="bookmark_url">
<a href="<%= encodeEntities(url) %>" target="_blank" class="bookmark_link">
<%= encodeEntities(title == '' ? '' : url) %>
</a>
<span class="bookmark_edit">
<img class="svg" src="<?php echo OCP\image_path("", "actions/rename.svg");?>"
title="<?php echo $l->t('Edit');?>">
</span>
</p>
<p class="bookmark_desc"><%= encodeEntities(description)%> </p>
<p class="bookmark_date"><%= formatDate(added_date) %></p>
<p class="bookmark_desc"><%= encodeEntities(description)%> </p>
</div>
</script>