[Jaws-commits] r12335 - in trunk/jaws/html/gadgets/LinkDump: . hooks languages resources templates

afz at jaws-project.com afz at jaws-project.com
Tue Jan 3 18:32:47 UTC 2012


Author: afz
Date: 2012-01-03 18:32:47 +0000 (Tue, 03 Jan 2012)
New Revision: 12335

Modified:
   trunk/jaws/html/gadgets/LinkDump/AdminHTML.php
   trunk/jaws/html/gadgets/LinkDump/HTML.php
   trunk/jaws/html/gadgets/LinkDump/LayoutHTML.php
   trunk/jaws/html/gadgets/LinkDump/hooks/URLList.php
   trunk/jaws/html/gadgets/LinkDump/languages/ca.php
   trunk/jaws/html/gadgets/LinkDump/languages/da.php
   trunk/jaws/html/gadgets/LinkDump/languages/de.php
   trunk/jaws/html/gadgets/LinkDump/languages/en.php
   trunk/jaws/html/gadgets/LinkDump/languages/es.php
   trunk/jaws/html/gadgets/LinkDump/languages/fa.php
   trunk/jaws/html/gadgets/LinkDump/languages/fi.php
   trunk/jaws/html/gadgets/LinkDump/languages/fr.php
   trunk/jaws/html/gadgets/LinkDump/languages/he.php
   trunk/jaws/html/gadgets/LinkDump/languages/it.php
   trunk/jaws/html/gadgets/LinkDump/languages/ja.php
   trunk/jaws/html/gadgets/LinkDump/languages/nb.php
   trunk/jaws/html/gadgets/LinkDump/languages/nl.php
   trunk/jaws/html/gadgets/LinkDump/languages/pl.php
   trunk/jaws/html/gadgets/LinkDump/languages/pt-br.php
   trunk/jaws/html/gadgets/LinkDump/languages/ro.php
   trunk/jaws/html/gadgets/LinkDump/languages/ru.php
   trunk/jaws/html/gadgets/LinkDump/languages/sv.php
   trunk/jaws/html/gadgets/LinkDump/languages/tr.php
   trunk/jaws/html/gadgets/LinkDump/languages/zh.php
   trunk/jaws/html/gadgets/LinkDump/resources/script.js
   trunk/jaws/html/gadgets/LinkDump/templates/AdminLinkDump.html
   trunk/jaws/html/gadgets/LinkDump/templates/Archive.html
   trunk/jaws/html/gadgets/LinkDump/templates/LinkDump.html
Log:
[LinkDump]:
- display clicks count in admin area
- some cosmetics in front-end actions

Modified: trunk/jaws/html/gadgets/LinkDump/AdminHTML.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/AdminHTML.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/AdminHTML.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -226,10 +226,11 @@
         $fasturl->SetStyle('direction: ltr; width: 256px;');
         $tpl->SetVariable('fast_url', $fasturl->Get());
 
-        $tpl->SetVariable('lbl_desc', _t('GLOBAL_DESCRIPTION'));
         $linkdesc =& Piwi::CreateWidget('TextArea', 'description', '');
+        $linkdesc->SetRows(4);
         $linkdesc->SetStyle('width: 256px;');
         $tpl->SetVariable('desc', $linkdesc->Get());
+        $tpl->SetVariable('lbl_desc', _t('GLOBAL_DESCRIPTION'));
 
         $rank =& Piwi::CreateWidget('Combo', 'rank');
         $rank->SetID('rank');
@@ -242,6 +243,12 @@
         $linktags->SetStyle('direction: ltr; width: 256px;');
         $tpl->SetVariable('tag', $linktags->Get());
 
+        $tpl->SetVariable('lbl_clicks', _t('LINKDUMP_LINKS_CLICKS'));
+        $linkclicks  =& Piwi::CreateWidget('Entry', 'clicks', '');
+        $linkclicks->SetEnabled(false);
+        $linkclicks->SetStyle('direction: ltr; width: 128px;');
+        $tpl->SetVariable('clicks', $linkclicks->Get());
+
         $tpl->ParseBlock('linkdump/LinksUI');
         $tpl->ParseBlock('linkdump');
         return $tpl->Get();

Modified: trunk/jaws/html/gadgets/LinkDump/HTML.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/HTML.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/HTML.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -56,15 +56,16 @@
         $tpl->Load('Archive.html');
         $tpl->SetBlock('archive');
 
-        $tpl->SetVariable('gid', $group['id']);
+        $tpl->SetVariable('gid',   $group['id']);
         $tpl->SetVariable('title', _t('LINKDUMP_LINKS_ARCHIVE'));
+        $tpl->SetVariable('name',  $group['title']);
 
         $feedname = empty($group['fast_url']) ?
                     $GLOBALS['app']->UTF8->str_replace(' ', '-', $group['title']) : $group['fast_url'];
         $feedname = preg_replace('/[@?^=%&:;\/~\+# ]/i', '\1', $feedname);
 
+        $tpl->SetVariable('feed', _t('LINKDUMP_LINKS_FEED'));
         $tpl->SetVariable('linkdump_rdf', $GLOBALS['app']->getDataURL("xml/linkdump.$feedname.rdf", false));
-        $tpl->SetVariable('rss_icon', 'gadgets/LinkDump/images/rss.gif');
 
         $target = $GLOBALS['app']->Registry->Get('/gadgets/LinkDump/links_target');
         $target = ($target == 'blank')? '_blank' : '_self';
@@ -74,11 +75,12 @@
         if (!Jaws_Error::IsError($links)) {
             foreach ($links as $link) {
                 $tpl->SetBlock("archive/$block");
-                $tpl->SetVariable('target', $target);
-                $tpl->SetVariable('title', $link['title']);
+                $tpl->SetVariable('target',      $target);
+                $tpl->SetVariable('title',       $link['title']);
                 $tpl->SetVariable('description', $link['description']);
-                $tpl->SetVariable('url', $link['url']);
-                $tpl->SetVariable('clicks', _t('LINKDUMP_LINKS_CLICKS', $link['clicks']));
+                $tpl->SetVariable('url',         $link['url']);
+                $tpl->SetVariable('clicks',      $link['clicks']);
+                $tpl->SetVariable('lbl_clicks',  _t('LINKDUMP_LINKS_CLICKS'));
                 if ($group['link_type'] == 2) {
                     $lid = empty($link['fast_url']) ? $link['id'] : $link['fast_url'];
                     $tpl->SetVariable('visit_url', $GLOBALS['app']->Map->GetURLFor('LinkDump', 'Link', array('id' => $lid)));
@@ -209,12 +211,13 @@
         if (!Jaws_Error::IsError($links)) {
             foreach ($links as $link) {
                 $tpl->SetBlock('tag/link');
-                $tpl->SetVariable('target', $target);
-                $tpl->SetVariable('title', $link['title']);
+                $tpl->SetVariable('target',      $target);
+                $tpl->SetVariable('title',       $link['title']);
                 $tpl->SetVariable('description', $link['description']);
-                $tpl->SetVariable('url', $link['url']);
-                $tpl->SetVariable('clicks', _t('LINKDUMP_LINKS_CLICKS', $link['clicks']));
-                $lid = empty($link['fast_url']) ? $link['id'] : $link['fast_url'];
+                $tpl->SetVariable('url',         $link['url']);
+                $tpl->SetVariable('clicks',      $link['clicks']);
+                $tpl->SetVariable('lbl_clicks',  _t('LINKDUMP_LINKS_CLICKS'));
+                $lid = empty($link['fast_url'])? $link['id'] : $link['fast_url'];
                 $tpl->SetVariable('visit_url', $GLOBALS['app']->Map->GetURLFor('LinkDump', 'Link', array('id' => $lid)));
                 $tpl->ParseBlock('tag/link');
             }

Modified: trunk/jaws/html/gadgets/LinkDump/LayoutHTML.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/LayoutHTML.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/LayoutHTML.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -57,10 +57,9 @@
         $tpl->Load('LinkDump.html');
         $tpl->SetBlock('linkdump');
 
-        $tpl->SetVariable('gid', $group['id']);
-        $tpl->SetVariable('name',_t('LINKDUMP_NAME'));
-        $tpl->SetVariable('title', $group['title']);
-        $tpl->SetVariable('archive', _t('LINKDUMP_LINKS_ARCHIVE'));
+        $tpl->SetVariable('gid',     $group['id']);
+        $tpl->SetVariable('title',   _t('LINKDUMP_NAME'));
+        $tpl->SetVariable('name',    $group['title']);
 
         $feedname = empty($group['fast_url']) ?
                     $GLOBALS['app']->UTF8->str_replace(' ', '-', $group['title']) : $group['fast_url'];
@@ -76,11 +75,12 @@
             foreach ($links as $link) {
                 $tpl->SetBlock("linkdump/$block");
                 $tpl->SetVariable('target', $target);
-                $tpl->SetVariable('title', $link['title']);
+                $tpl->SetVariable('title',  $link['title']);
                 $tpl->SetVariable('description', $link['description']);
                 if ($group['link_type'] == 2) {
-                    $tpl->SetVariable('clicks', _t('LINKDUMP_LINKS_CLICKS', $link['clicks']));
-                    $lid = empty($link['fast_url']) ? $link['id'] : $link['fast_url'];
+                    $tpl->SetVariable('clicks',  $link['clicks']);
+                    $tpl->SetVariable('lbl_clicks', _t('LINKDUMP_LINKS_CLICKS'));
+                    $lid = empty($link['fast_url'])? $link['id'] : $link['fast_url'];
                     $tpl->SetVariable('url', $GLOBALS['app']->Map->GetURLFor('LinkDump', 'Link', array('id' => $lid)));
                 } else {
                     $tpl->SetVariable('url', $link['url']);

Modified: trunk/jaws/html/gadgets/LinkDump/hooks/URLList.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/hooks/URLList.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/hooks/URLList.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -25,13 +25,15 @@
         $model  = $GLOBALS['app']->loadGadget('LinkDump', 'Model');
         $groups = $model->GetGroups();
         if (!Jaws_Error::IsError($groups)) {
-            $max_size = 20;
+            $max_size = 32;
             foreach ($groups as $group) {
-                $url = $GLOBALS['app']->Map->GetURLFor('LinkDump', 'Group', array('id' => $group['id']));
+                $title = _t('LINKDUMP_LINKS_ARCHIVE'). ' - '. $group['title'];
+                $gid = empty($group['fast_url']) ? $group['id'] : $group['fast_url'];
+                $url = $GLOBALS['app']->Map->GetURLFor('LinkDump', 'Archive', array('id' => $gid));
                 $urls[] = array('url'   => $url,
-                                'title' => ($GLOBALS['app']->UTF8->strlen($group['title']) > $max_size)?
-                                            $GLOBALS['app']->UTF8->substr($group['title'], 0, $max_size) . '...' :
-                                            $group['title']);
+                                'title' => ($GLOBALS['app']->UTF8->strlen($title) > $max_size)?
+                                            $GLOBALS['app']->UTF8->substr($title, 0, $max_size - 3) . '...' :
+                                            $title);
             }
         }
 

Modified: trunk/jaws/html/gadgets/LinkDump/languages/ca.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/ca.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/ca.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -31,7 +31,7 @@
 define('_CA_LINKDUMP_LINKS_TAGS', "Etiquetes");
 define('_CA_LINKDUMP_LINKS_ARCHIVE', "Arxiu d'enllaços");
 define('_CA_LINKDUMP_LINKS_FEED', "Sindicació");
-define('_CA_LINKDUMP_LINKS_CLICKS', "Clics: {0}");
+define('_CA_LINKDUMP_LINKS_CLICKS', "Clics");
 define('_CA_LINKDUMP_LINKS_TAGCLOUD', "Núvol d'etiquetes del Bolcat d'enllaços");
 define('_CA_LINKDUMP_LINKS_TAG_ARCHIVE', "Arxiu d'etiquetes - {0}");
 define('_CA_LINKDUMP_LINKS_NOEXISTS', "L'enllaç no existeix.");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/da.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/da.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/da.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -16,7 +16,7 @@
 define('_DA_LINKDUMP_ACL_UPDATEPROPERTIES', "Opdatere egenskaber");
 define('_DA_LINKDUMP_LAYOUT_DISPLAY_DESCRIPTION', "Viser en liste med et begrænset antal af linkene");
 define('_DA_LINKDUMP_LINKS_ARCHIVE', "Arkiver");
-define('_DA_LINKDUMP_LINKS_CLICKS', "Antal klik: {0}");
+define('_DA_LINKDUMP_LINKS_CLICKS', "Antal klik");
 define('_DA_LINKDUMP_LINKS_DELETE_CONFIRM', "Er du sikker på, at du vil slette dette link?");
 define('_DA_LINKDUMP_GROUPS_LIMIT_COUNT', "Antal viste links");
 define('_DA_LINKDUMP_LINKS_ADDED', "Linket blev tilføjet");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/de.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/de.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/de.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -31,7 +31,7 @@
 define('_DE_LINKDUMP_LINKS_TAGS', "Tags");
 define('_DE_LINKDUMP_LINKS_ARCHIVE', "Archiv");
 define('_DE_LINKDUMP_LINKS_FEED', "Feed");
-define('_DE_LINKDUMP_LINKS_CLICKS', "Klicks: {0}");
+define('_DE_LINKDUMP_LINKS_CLICKS', "Klicks");
 define('_DE_LINKDUMP_LINKS_TAGCLOUD', "Link Dump Kategorienwolke");
 define('_DE_LINKDUMP_LINKS_TAG_ARCHIVE', "Tag Archive");
 define('_DE_LINKDUMP_LINKS_NOEXISTS', "Keine Links verfügbar.");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/en.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/en.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/en.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -38,7 +38,7 @@
 define('_EN_LINKDUMP_LINKS_TAGS', "Tags");
 define('_EN_LINKDUMP_LINKS_ARCHIVE', "Links Archive");
 define('_EN_LINKDUMP_LINKS_FEED', "Feed");
-define('_EN_LINKDUMP_LINKS_CLICKS', "Clicks: {0}");
+define('_EN_LINKDUMP_LINKS_CLICKS', "Clicks");
 define('_EN_LINKDUMP_LINKS_TAGCLOUD', "Link Dump Tag Cloud");
 define('_EN_LINKDUMP_LINKS_TAG_ARCHIVE', "Tag Archive - {0}");
 define('_EN_LINKDUMP_LINKS_NOEXISTS', "No link exists.");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/es.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/es.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/es.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -31,7 +31,7 @@
 define('_ES_LINKDUMP_LINKS_TAGS', "Etiquetas");
 define('_ES_LINKDUMP_LINKS_ARCHIVE', "Archivos");
 define('_ES_LINKDUMP_LINKS_FEED', "Fuente");
-define('_ES_LINKDUMP_LINKS_CLICKS', "Clicks: {0}");
+define('_ES_LINKDUMP_LINKS_CLICKS', "Clicks");
 define('_ES_LINKDUMP_LINKS_TAGCLOUD', "Nube de Etiquetas del Volcado");
 define('_ES_LINKDUMP_LINKS_TAG_ARCHIVE', "Archivo de Etiquetas");
 define('_ES_LINKDUMP_LINKS_NOEXISTS', "No existe el enlace");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/fa.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/fa.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/fa.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -31,7 +31,7 @@
 define('_FA_LINKDUMP_LINKS_TAGS', "دسته بندیها");
 define('_FA_LINKDUMP_LINKS_ARCHIVE', "آرشیو لینکها");
 define('_FA_LINKDUMP_LINKS_FEED', "تهیه XML");
-define('_FA_LINKDUMP_LINKS_CLICKS', "تعداد کلیک: {0}");
+define('_FA_LINKDUMP_LINKS_CLICKS', "تعداد کلیک");
 define('_FA_LINKDUMP_LINKS_TAGCLOUD', "لیست دسته بندیهای لینکها");
 define('_FA_LINKDUMP_LINKS_TAG_ARCHIVE', "آرشیو دسته بندیها");
 define('_FA_LINKDUMP_LINKS_NOEXISTS', "هیچ لینکی یافت نشد.");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/fi.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/fi.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/fi.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -31,7 +31,7 @@
 define('_FI_LINKDUMP_LINKS_TAGS', "Tagit");
 define('_FI_LINKDUMP_LINKS_ARCHIVE', "Linkkiarkisto");
 define('_FI_LINKDUMP_LINKS_FEED', "Syöte");
-define('_FI_LINKDUMP_LINKS_CLICKS', "Klikkaukset: {0}");
+define('_FI_LINKDUMP_LINKS_CLICKS', "Klikkaukset");
 define('_FI_LINKDUMP_LINKS_TAGCLOUD', "Tagipilvi");
 define('_FI_LINKDUMP_LINKS_TAG_ARCHIVE', "Tagiarkisto - {0}");
 define('_FI_LINKDUMP_LINKS_NOEXISTS', "Ei linkkejä.");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/fr.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/fr.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/fr.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -31,7 +31,7 @@
 define('_FR_LINKDUMP_LINKS_TAGS', "Tags");
 define('_FR_LINKDUMP_LINKS_ARCHIVE', "Archives");
 define('_FR_LINKDUMP_LINKS_FEED', "Flux");
-define('_FR_LINKDUMP_LINKS_CLICKS', "Clics: {0}");
+define('_FR_LINKDUMP_LINKS_CLICKS', "Clics");
 define('_FR_LINKDUMP_LINKS_TAGCLOUD', "Nuage de tags");
 define('_FR_LINKDUMP_LINKS_TAG_ARCHIVE', "Archive de tag");
 define('_FR_LINKDUMP_LINKS_NOEXISTS', "Il n'existe pas de lien");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/he.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/he.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/he.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -26,7 +26,7 @@
 define('_HE_LINKDUMP_LINKS_TAGS', "תגיות");
 define('_HE_LINKDUMP_LINKS_ARCHIVE', "ארכיון קישורים");
 define('_HE_LINKDUMP_LINKS_FEED', "רסס");
-define('_HE_LINKDUMP_LINKS_CLICKS', "{0} הקלקות");
+define('_HE_LINKDUMP_LINKS_CLICKS', "הקלקות");
 define('_HE_LINKDUMP_LINKS_TAG_ARCHIVE', "ארכיון תגיות");
 define('_HE_LINKDUMP_LINKS_NOEXISTS', "לא נמצאו קישורים");
 define('_HE_LINKDUMP_GROUPS_GROUP', "קבוצה");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/it.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/it.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/it.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -30,7 +30,7 @@
 define('_IT_LINKDUMP_LINKS_TAGS', "Tags");
 define('_IT_LINKDUMP_LINKS_ARCHIVE', "Archivi");
 define('_IT_LINKDUMP_LINKS_FEED', "Feed");
-define('_IT_LINKDUMP_LINKS_CLICKS', "Click: {0}");
+define('_IT_LINKDUMP_LINKS_CLICKS', "Click");
 define('_IT_LINKDUMP_LINKS_TAGCLOUD', "Link Dump Tag Cloud (Lista Pesata)");
 define('_IT_LINKDUMP_LINKS_TAG_ARCHIVE', "Archivio Tag");
 define('_IT_LINKDUMP_LINKS_NOEXISTS', "Nessun link esistente.");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/ja.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/ja.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/ja.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -30,7 +30,7 @@
 define('_JA_LINKDUMP_LINKS_TAGS', "タグ");
 define('_JA_LINKDUMP_LINKS_ARCHIVE', "書庫");
 define('_JA_LINKDUMP_LINKS_FEED', "フィード");
-define('_JA_LINKDUMP_LINKS_CLICKS', "クリック: {0}");
+define('_JA_LINKDUMP_LINKS_CLICKS', "クリック");
 define('_JA_LINKDUMP_LINKS_TAGCLOUD', "リンク集のタグクラウド");
 define('_JA_LINKDUMP_LINKS_TAG_ARCHIVE', "タグの書庫");
 define('_JA_LINKDUMP_LINKS_NOEXISTS', "リンクが存在しません。");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/nb.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/nb.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/nb.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -31,7 +31,7 @@
 define('_NB_LINKDUMP_LINKS_TAGS', "Tagger");
 define('_NB_LINKDUMP_LINKS_ARCHIVE', "Lenkearkiv");
 define('_NB_LINKDUMP_LINKS_FEED', "Kilde");
-define('_NB_LINKDUMP_LINKS_CLICKS', "Klikk: {0}");
+define('_NB_LINKDUMP_LINKS_CLICKS', "Klikk");
 define('_NB_LINKDUMP_LINKS_TAGCLOUD', "Dump taggsky av lenkene");
 define('_NB_LINKDUMP_LINKS_TAG_ARCHIVE', "Taggarkiv - {0}");
 define('_NB_LINKDUMP_LINKS_NOEXISTS', "Ingen lenker eksisterer");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/nl.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/nl.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/nl.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -30,7 +30,7 @@
 define('_NL_LINKDUMP_LINKS_TAGS', "Tags");
 define('_NL_LINKDUMP_LINKS_ARCHIVE', "Link Archief");
 define('_NL_LINKDUMP_LINKS_FEED', "Feed");
-define('_NL_LINKDUMP_LINKS_CLICKS', "Klikken: {0}");
+define('_NL_LINKDUMP_LINKS_CLICKS', "Klikken");
 define('_NL_LINKDUMP_LINKS_TAGCLOUD', "Link Tag wolk");
 define('_NL_LINKDUMP_LINKS_TAG_ARCHIVE', "Tag Archief");
 define('_NL_LINKDUMP_LINKS_NOEXISTS', "Er zijn geen links.");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/pl.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/pl.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/pl.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -31,7 +31,7 @@
 define('_PL_LINKDUMP_LINKS_TAGS', "Tagi");
 define('_PL_LINKDUMP_LINKS_ARCHIVE', "Archiwum Odnośników");
 define('_PL_LINKDUMP_LINKS_FEED', "Feed");
-define('_PL_LINKDUMP_LINKS_CLICKS', "Kliknięć: {0}");
+define('_PL_LINKDUMP_LINKS_CLICKS', "Kliknięć");
 define('_PL_LINKDUMP_LINKS_TAGCLOUD', "Chmura Tagów dla Odnośników");
 define('_PL_LINKDUMP_LINKS_TAG_ARCHIVE', "Archiwum Tagów - {0}");
 define('_PL_LINKDUMP_LINKS_NOEXISTS', "Brak odnośników.");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/pt-br.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/pt-br.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/pt-br.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -31,7 +31,7 @@
 define('_PT-BR_LINKDUMP_LINKS_TAGS', "Rótulos");
 define('_PT-BR_LINKDUMP_LINKS_ARCHIVE', "Arquivos");
 define('_PT-BR_LINKDUMP_LINKS_FEED', "Agregador");
-define('_PT-BR_LINKDUMP_LINKS_CLICKS', "Cliques: {0}");
+define('_PT-BR_LINKDUMP_LINKS_CLICKS', "Cliques");
 define('_PT-BR_LINKDUMP_LINKS_TAGCLOUD', "Nuvem de Rótulos do Link Dump");
 define('_PT-BR_LINKDUMP_LINKS_TAG_ARCHIVE', "Arquivo de Rótulos");
 define('_PT-BR_LINKDUMP_LINKS_NOEXISTS', "Não existe link.");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/ro.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/ro.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/ro.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -21,7 +21,7 @@
 define('_RO_LINKDUMP_LINKS_TAGS', "Etichete");
 define('_RO_LINKDUMP_LINKS_ARCHIVE', "Arhive");
 define('_RO_LINKDUMP_LINKS_FEED', "Flux");
-define('_RO_LINKDUMP_LINKS_CLICKS', "Accesari: {0}");
+define('_RO_LINKDUMP_LINKS_CLICKS', "Accesari");
 define('_RO_LINKDUMP_LINKS_TAGCLOUD', "Nor etichete Depozit Legaturi");
 define('_RO_LINKDUMP_LINKS_TAG_ARCHIVE', "Arhiva etichete");
 define('_RO_LINKDUMP_LINKS_DELETE_CONFIRM', "Sigur vrei sa stergi aceasta legatura?");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/ru.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/ru.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/ru.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -31,7 +31,7 @@
 define('_RU_LINKDUMP_LINKS_TAGS', "Теги");
 define('_RU_LINKDUMP_LINKS_ARCHIVE', "Архивы");
 define('_RU_LINKDUMP_LINKS_FEED', "Ленты");
-define('_RU_LINKDUMP_LINKS_CLICKS', "Клики: {0}");
+define('_RU_LINKDUMP_LINKS_CLICKS', "Клики");
 define('_RU_LINKDUMP_LINKS_TAGCLOUD', "Облако тегов Ссылок");
 define('_RU_LINKDUMP_LINKS_TAG_ARCHIVE', "Архив тегов");
 define('_RU_LINKDUMP_LINKS_NOEXISTS', "Нет ссылок.");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/sv.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/sv.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/sv.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -31,7 +31,7 @@
 define('_SV_LINKDUMP_LINKS_TAGS', "Taggar");
 define('_SV_LINKDUMP_LINKS_ARCHIVE', "Länkarkiv");
 define('_SV_LINKDUMP_LINKS_FEED', "Flöde");
-define('_SV_LINKDUMP_LINKS_CLICKS', "Klick: {0}");
+define('_SV_LINKDUMP_LINKS_CLICKS', "Klick");
 define('_SV_LINKDUMP_LINKS_TAGCLOUD', "Taggmoln för länkdumpning");
 define('_SV_LINKDUMP_LINKS_TAG_ARCHIVE', "Taggarkiv - {0}");
 define('_SV_LINKDUMP_LINKS_NOEXISTS', "Ingen länk finns.");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/tr.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/tr.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/tr.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -31,7 +31,7 @@
 define('_TR_LINKDUMP_LINKS_TAGS', "Etiketler");
 define('_TR_LINKDUMP_LINKS_ARCHIVE', "Arşiv");
 define('_TR_LINKDUMP_LINKS_FEED', "Besle");
-define('_TR_LINKDUMP_LINKS_CLICKS', "Tıklamalar: {0}");
+define('_TR_LINKDUMP_LINKS_CLICKS', "Tıklamalar");
 define('_TR_LINKDUMP_LINKS_TAGCLOUD', "Şüpheli etiketlerde link boşaltımı");
 define('_TR_LINKDUMP_LINKS_TAG_ARCHIVE', "Etiket Arşivi");
 define('_TR_LINKDUMP_LINKS_NOEXISTS', "Bağ yok");

Modified: trunk/jaws/html/gadgets/LinkDump/languages/zh.php
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/languages/zh.php	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/languages/zh.php	2012-01-03 18:32:47 UTC (rev 12335)
@@ -21,7 +21,7 @@
 define('_ZH_LINKDUMP_LINKS_TAGS', "Tags");
 define('_ZH_LINKDUMP_LINKS_ARCHIVE', "档案");
 define('_ZH_LINKDUMP_LINKS_FEED', "Feed");
-define('_ZH_LINKDUMP_LINKS_CLICKS', "点击: {0}");
+define('_ZH_LINKDUMP_LINKS_CLICKS', "点击");
 define('_ZH_LINKDUMP_LINKS_TAGCLOUD', "链接转存Tag区域");
 define('_ZH_LINKDUMP_LINKS_TAG_ARCHIVE', "Tag存档");
 define('_ZH_LINKDUMP_LINKS_DELETE_CONFIRM', "你确定要删除这个链接?");

Modified: trunk/jaws/html/gadgets/LinkDump/resources/script.js
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/resources/script.js	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/resources/script.js	2012-01-03 18:32:47 UTC (rev 12335)
@@ -364,6 +364,7 @@
     $('fast_url').value    = linkInfo['fast_url'];
     $('description').value = linkInfo['description'];
     $('tags').value        = linkInfo['tags'];
+    $('clicks').value      = linkInfo['clicks'];
     setRanksCombo($('gid').value);
     $('rank').value = linkInfo['rank'];
 }

Modified: trunk/jaws/html/gadgets/LinkDump/templates/AdminLinkDump.html
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/templates/AdminLinkDump.html	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/templates/AdminLinkDump.html	2012-01-03 18:32:47 UTC (rev 12335)
@@ -62,6 +62,7 @@
     <tr><td><label for="description">{lbl_desc}:</label></td><td>{desc}</td></tr>
     <tr><td><label for="rank">{lbl_rank}:</label></td><td>{rank}</td></tr>
     <tr><td><label for="tags">{lbl_tag}:</label></td><td>{tag}</td></tr>
+    <tr><td><label for="clicks">{lbl_clicks}:</label></td><td>{clicks}</td></tr>
   </table>
 </div>
 <!-- END LinksUI -->

Modified: trunk/jaws/html/gadgets/LinkDump/templates/Archive.html
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/templates/Archive.html	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/templates/Archive.html	2012-01-03 18:32:47 UTC (rev 12335)
@@ -1,12 +1,14 @@
 <!-- BEGIN archive -->
 <div class="gadget links_archive" id="linkdump_archive_{gid}">
-  <h2>{title}</h2>
+  <h2>{title} - {name}</h2>
   <div class="content">
     <ul>
     <!-- BEGIN link -->
     <li>
       <div>
-        <span><a href="{visit_url}" target="{target}" title="{url}">{title}</a><small>[{clicks}]</small></span>
+        <span><a href="{visit_url}" target="{target}" title="{url}">{title}</a>
+              <small>[{lbl_clicks}: {clicks}]</small>
+        </span>
         <p>{description}</p>
       </div>
     </li>
@@ -20,7 +22,9 @@
     </li>
     <!-- END list -->
     </ul>
-    <div><a href="{linkdump_rdf}"><img alt="RSS" src="{rss_icon}" /></a></div>
+    <div class="linkdump_action">
+      <a href="{linkdump_rdf}" target="_blank"><img alt="RSS" title="{feed}" src="images/rss2.png" /></a>
+    </div>
   </div>
 </div>
 <!-- END archive -->
\ No newline at end of file

Modified: trunk/jaws/html/gadgets/LinkDump/templates/LinkDump.html
===================================================================
--- trunk/jaws/html/gadgets/LinkDump/templates/LinkDump.html	2012-01-03 18:32:10 UTC (rev 12334)
+++ trunk/jaws/html/gadgets/LinkDump/templates/LinkDump.html	2012-01-03 18:32:47 UTC (rev 12335)
@@ -1,16 +1,15 @@
 <!-- BEGIN linkdump -->
 <div class="gadget linkdump" id="linkdump_{gid}">
-  <h2>{name} - {title}</h2>
+  <h2><a href="{archive_url}">{title} - {name}</a></h2>
   <div class="content">
     <ul>
     <!-- BEGIN link -->
-      <li><a href="{url}" target="{target}" rel="external" title="{description} | {clicks}">{title}</a></li>
+      <li><a href="{url}" target="{target}" rel="external" title="{description}">{title}</a></li>
     <!-- END link -->
     <!-- BEGIN list -->
       <li><label>{title}</label></li>
     <!-- END list -->
     </ul>
-    <div class="linkdump_action"><a href="{archive_url}">{archive}</a> | <a href="{linkdump_rdf}" target="_blank">{feed}</a></div>
   </div>
 </div>
 <!-- END linkdump -->
\ No newline at end of file



More information about the Jaws-commits mailing list