summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks
diff options
context:
space:
mode:
authorMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2012-02-22 23:08:50 +0100
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2012-02-22 23:08:50 +0100
commit5387820a3b81b35521063bb142dd1492a87ef470 (patch)
tree2c72a3f1b0fd3e06cb8345186bae11758b4ebc8e /apps/bookmarks
parent70f9936651870ad0768c26f76849fa5e7708eaee (diff)
downloadnextcloud-server-5387820a3b81b35521063bb142dd1492a87ef470.tar.gz
nextcloud-server-5387820a3b81b35521063bb142dd1492a87ef470.zip
changed look of bookmarklet
Diffstat (limited to 'apps/bookmarks')
-rw-r--r--apps/bookmarks/css/bookmarks.css2
-rw-r--r--apps/bookmarks/templates/bookmarklet.php8
-rw-r--r--apps/bookmarks/templates/list.php8
3 files changed, 8 insertions, 10 deletions
diff --git a/apps/bookmarks/css/bookmarks.css b/apps/bookmarks/css/bookmarks.css
index 7203078ffda..fedd2af7c4c 100644
--- a/apps/bookmarks/css/bookmarks.css
+++ b/apps/bookmarks/css/bookmarks.css
@@ -1,6 +1,6 @@
#content { overflow: auto; height: 100%; }
#firstrun { width: 80%; margin: 5em auto auto auto; text-align: center; font-weight:bold; font-size:1.5em; color:#777;}
-#firstrun small { display: block; font-weight: normal; font-size: 0.5em; }
+#firstrun small { display: block; font-weight: normal; font-size: 0.5em; margin-bottom: 1.5em; }
#firstrun #selections { font-size:0.8em; font-weight: normal; width: 100%; margin: 2em auto auto auto; clear: both; }
.bookmarks_headline {
diff --git a/apps/bookmarks/templates/bookmarklet.php b/apps/bookmarks/templates/bookmarklet.php
index eaae21d1ce4..5719603da5f 100644
--- a/apps/bookmarks/templates/bookmarklet.php
+++ b/apps/bookmarks/templates/bookmarklet.php
@@ -1,8 +1,8 @@
<?php
function createBookmarklet() {
- $l = new OC_L10N('bookmarks');
- echo "<em>" .$l->t('Drag this to your browser bookmarks and click it, when you want to bookmark a webpage:') . "</em>&nbsp;";
- echo "<a style='background-color:#eee;border:1px groove #999; padding:5px;padding-top:0px;padding-bottom:2px; text-decoration:none; margin-top:5px' href=\"javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('" . OC_Helper::linkToAbsolute('bookmarks', 'addBm.php') . "?output=popup&url='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=510px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();\">";
- echo $l->t('Add page to ownCloud') . "</a>";
+ $l = new OC_L10N('bookmarks');
+ echo '<small>' . $l->t('Drag this to your browser bookmarks and click it, when you want to bookmark a webpage:') . '</small>'
+ . '<a class="button" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open(\'' . OC_Helper::linkToAbsolute('bookmarks', 'addBm.php') . '?output=popup&url=\'+c(b.location),\'bkmk_popup\',\'left=\'+((a.screenX||a.screenLeft)+10)+\',top=\'+((a.screenY||a.screenTop)+10)+\',height=510px,width=550px,resizable=1,alwaysRaised=1\');a.setTimeout(function(){d.focus()},300);})();">'
+ . $l->t('Add page to ownCloud') . '</a>';
}
diff --git a/apps/bookmarks/templates/list.php b/apps/bookmarks/templates/list.php
index ae63d4dc6fd..46577d16832 100644
--- a/apps/bookmarks/templates/list.php
+++ b/apps/bookmarks/templates/list.php
@@ -23,11 +23,9 @@
<div class="bookmarks_list">
</div>
<div id="firstrun">
- <?php echo $l->t('You have no bookmarks'); ?>
- <div id="selections">
<?php
- require_once('bookmarklet.php');
- createBookmarklet();
+ echo $l->t('You have no bookmarks');
+ require_once('bookmarklet.php');
+ createBookmarklet();
?>
- </div>
</div>