]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Interface fix: add a link to last editor profile in common description. Don't count...
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 19 Feb 2008 14:43:00 +0000 (14:43 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 19 Feb 2008 14:43:00 +0000 (14:43 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@46 b3834d28-1941-0410-a4f8-b48e95affb8f

locales/fr_FR/LC_MESSAGES/messages.mo
locales/fr_FR/LC_MESSAGES/messages.po
locales/messages.po
services/commondescriptionservice.php
templates/bookmarkcommondescriptionedit.tpl.php
templates/tagcommondescriptionedit.tpl.php

index a80e071f7f381675cee1fb0eaea3134ffb27e056..aeb0b2fb67c97c7d2e2c63244afe41090973bec3 100644 (file)
Binary files a/locales/fr_FR/LC_MESSAGES/messages.mo and b/locales/fr_FR/LC_MESSAGES/messages.mo differ
index 316ad71168e0b7be60efd279409616f20d489020..22ec2dcd6dc010ed2cd4a6c58052877f87ae39d9 100644 (file)
@@ -8,8 +8,8 @@ msgid ""
 msgstr ""
 "Project-Id-Version: Scuttle\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-02-19 10:28+0100\n"
-"PO-Revision-Date: 2008-02-19 10:29+0100\n"
+"POT-Creation-Date: 2008-02-19 15:30+0100\n"
+"PO-Revision-Date: 2008-02-19 15:31+0100\n"
 "Last-Translator: BenjaminHKB <benjamin.huynh-kim-bang@loria.fr>\n"
 "Language-Team: fr-FR <toony.sf@chezouam.net>\n"
 "MIME-Version: 1.0\n"
@@ -566,7 +566,7 @@ msgstr "Description"
 
 #: ../../../templates/bookmarkcommondescriptionedit.tpl.php:28
 #: ../../../templates/tagcommondescriptionedit.tpl.php:21
-msgid "Last modification: "
+msgid "Last modification:"
 msgstr "Dernière modification :"
 
 #: ../../../templates/bookmarkcommondescriptionedit.tpl.php:39
index f279fa5716f2f996c856b73dfa9b2f95d6363e71..f9d9c84fc111bbf4260250eb3832af04294e505b 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-02-19 10:28+0100\n"
+"POT-Creation-Date: 2008-02-19 15:30+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -553,7 +553,7 @@ msgstr ""
 
 #: ../../../templates/bookmarkcommondescriptionedit.tpl.php:28
 #: ../../../templates/tagcommondescriptionedit.tpl.php:21
-msgid "Last modification: "
+msgid "Last modification:"
 msgstr ""
 
 #: ../../../templates/bookmarkcommondescriptionedit.tpl.php:39
index 7e34219c542f910f64b1c4541c156ea07d059441..6c591a9c6027ffb900d3c9ae3a8afcce81b27b48 100644 (file)
@@ -16,6 +16,13 @@ class CommonDescriptionService {
     }
 
     function addTagDescription($tag, $desc, $uId, $time) {
+       // Check if no modification
+       $lastDesc = $this->getLastTagDescription($tag);
+       if($lastDesc['cdDescription'] == $desc) {
+           return true;
+       }
+
+       // If modification
        $datetime = gmdate('Y-m-d H:i:s', $time);
        $values = array('tag'=>$tag, 'cdDescription'=>$desc, 'uId'=>$uId, 'cdDatetime'=>$datetime);
        $sql = 'INSERT INTO '. $this->getTableName() .' '. $this->db->sql_build_array('INSERT', $values);
@@ -81,6 +88,13 @@ class CommonDescriptionService {
     }
 
     function addBookmarkDescription($bHash, $title, $desc, $uId, $time) {
+       // Check if no modification
+       $lastDesc = $this->getLastBookmarkDescription($bHash);
+       if($lastDesc['cdTitle'] == $title && $lastDesc['cdDescription'] == $desc) {
+           return true;
+       }
+
+       // If modification
        $datetime = gmdate('Y-m-d H:i:s', $time);
        $values = array('bHash'=>$bHash, 'cdTitle'=>$title, 'cdDescription'=>$desc, 'uId'=>$uId, 'cdDatetime'=>$datetime);
        $sql = 'INSERT INTO '. $this->getTableName() .' '. $this->db->sql_build_array('INSERT', $values);
index c1723de1f0d528421fa833bf2defeb6387d45df7..39f20ae43344fa744d385298ac0a717539bd1ef2 100644 (file)
@@ -25,9 +25,9 @@ window.onload = function() {
     <td>
        <?php
        if(strlen($description['cdDatetime'])>0) {
-          echo T_('Last modification: ').$description['cdDatetime'].', ';
+          echo T_('Last modification:').' '.$description['cdDatetime'].', ';
           $lastUser = $userservice->getUser($description['uId']);
-          echo  $lastUser['username'];
+          echo  '<a href="'.createURL('profile', $lastUser['username']).'">'.$lastUser['username'].'</a>';
        }
        ?>
     </td>
index 6e09374a5667ff42f4182fc05070ae154e58a7a8..158142ee4df852e4d0adb424121497f010754433 100644 (file)
@@ -18,9 +18,9 @@ window.onload = function() {
     <td>
        <?php
        if(strlen($description['cdDatetime'])>0) {
-          echo T_('Last modification: ').$description['cdDatetime'].', ';
+          echo T_('Last modification:').' '.$description['cdDatetime'].', ';
           $lastUser = $userservice->getUser($description['uId']);
-          echo  $lastUser['username'];
+          echo  '<a href="'.createURL('profile', $lastUser['username']).'">'.$lastUser['username'].'</a>';
        }
        ?>
     </td>