]> source.dussan.org Git - nextcloud-server.git/commitdiff
changed look of bookmarklet
authorMarvin Thomas Rabe <m.rabe@echtzeitraum.de>
Wed, 22 Feb 2012 22:08:50 +0000 (23:08 +0100)
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>
Wed, 22 Feb 2012 22:08:50 +0000 (23:08 +0100)
apps/bookmarks/css/bookmarks.css
apps/bookmarks/templates/bookmarklet.php
apps/bookmarks/templates/list.php

index 7203078ffda620a7823c1effdc00483820eb5e62..fedd2af7c4c0b112bdf086fbb2d6760253aad2c5 100644 (file)
@@ -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 {
index eaae21d1ce468e068d751e5661b9159f4ae090ac..5719603da5f42a9a5f47fa94f61177f3a45e60d8 100644 (file)
@@ -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>';
 } 
index ae63d4dc6fd915af54cf5d132074de4984bd79a6..46577d1683209efb5de5a8f571242a6902905943 100644 (file)
 <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>