From 8e5489846d5d9e87186b7a449227e18183489ddc Mon Sep 17 00:00:00 2001 From: Simon L'nu Date: Wed, 4 Apr 2012 23:35:07 -0400 Subject: update the dispy* templates Signed-off-by: Simon L'nu --- view/theme/dispy-dark/head.tpl | 24 ++++++++++-- view/theme/dispy-dark/jot-header.tpl | 3 +- view/theme/dispy-dark/jot.tpl | 2 +- view/theme/dispy-dark/nets.tpl | 2 +- view/theme/dispy-dark/saved_searches_aside.tpl | 6 +-- view/theme/dispy-dark/search_item.tpl | 43 +++++++++++---------- view/theme/dispy-dark/wall_item.tpl | 15 ++++---- view/theme/dispy-dark/wallwall_item.tpl | 52 +++++++++++++------------- 8 files changed, 86 insertions(+), 61 deletions(-) (limited to 'view/theme/dispy-dark') diff --git a/view/theme/dispy-dark/head.tpl b/view/theme/dispy-dark/head.tpl index f606f2f7e..cd6f5ca97 100644 --- a/view/theme/dispy-dark/head.tpl +++ b/view/theme/dispy-dark/head.tpl @@ -7,7 +7,7 @@ - + '); + ins = ins.replace('&','&'); + ins = ins.replace('"','"'); + $("#comment-edit-text-" + id).val(tmpStr + ins); + } + function showHideComments(id) { if( $('#collapsed-comments-' + id).is(':visible')) { $('#collapsed-comments-' + id).hide(); diff --git a/view/theme/dispy-dark/jot-header.tpl b/view/theme/dispy-dark/jot-header.tpl index 92eccf740..5838729cc 100644 --- a/view/theme/dispy-dark/jot-header.tpl +++ b/view/theme/dispy-dark/jot-header.tpl @@ -9,6 +9,7 @@ function initEditor(cb) { if(plaintext == 'none') { $("#profile-jot-text-loading").hide(); $("#profile-jot-text").css({ 'height': 200, 'color': '#000' }); + $("#profile-jot-text").contact_autocomplete(baseurl+"/acl"); editor = true; $("a#jot-perms-icon").fancybox({ 'transitionIn' : 'elastic', @@ -30,6 +31,7 @@ function initEditor(cb) { theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "center", theme_advanced_blockformats : "blockquote,code", + gecko_spellcheck : true, paste_text_sticky : true, entity_encoding : "raw", add_unload_trigger : false, @@ -296,7 +298,6 @@ function enableOnUser(){ } - function jotClearLocation() { $('#jot-coord').val(''); $('#profile-nolocation-wrapper').hide(); diff --git a/view/theme/dispy-dark/jot.tpl b/view/theme/dispy-dark/jot.tpl index 94c31da23..688ac1451 100644 --- a/view/theme/dispy-dark/jot.tpl +++ b/view/theme/dispy-dark/jot.tpl @@ -11,7 +11,7 @@ - +
diff --git a/view/theme/dispy-dark/nets.tpl b/view/theme/dispy-dark/nets.tpl index b322717ad..b0cb8890c 100644 --- a/view/theme/dispy-dark/nets.tpl +++ b/view/theme/dispy-dark/nets.tpl @@ -4,7 +4,7 @@ $all diff --git a/view/theme/dispy-dark/saved_searches_aside.tpl b/view/theme/dispy-dark/saved_searches_aside.tpl index 63a85dda5..fb822fe5d 100644 --- a/view/theme/dispy-dark/saved_searches_aside.tpl +++ b/view/theme/dispy-dark/saved_searches_aside.tpl @@ -1,12 +1,12 @@ -
+
$searchbox diff --git a/view/theme/dispy-dark/search_item.tpl b/view/theme/dispy-dark/search_item.tpl index 54c3e389c..bfad1b7b7 100644 --- a/view/theme/dispy-dark/search_item.tpl +++ b/view/theme/dispy-dark/search_item.tpl @@ -1,10 +1,10 @@ -
+
- + $item.name menu
@@ -14,11 +14,21 @@
-
{{ if $item.location }}$item.location {{ endif }}
+
+ {{ if $item.lock }}
$item.lock
+ {{ else }}
{{ endif }} +
$item.location
+
-
- {{ if $item.lock }}
$item.lock
- {{ else }}
{{ endif }} +
+ $item.name +
$item.ago
+ +
+
+
$item.title
+
+
$item.body
@@ -27,25 +37,18 @@ {{ if $item.drop.dropping }}{{ endif }}
-
-
$item.title
-
-
$item.body
-
-
- $item.name -
$item.ago
- -
-
-
-
+
{{ if $item.conv }} - $item.conv.title + $item.conv.title {{ endif }}
+
+ +
+ + diff --git a/view/theme/dispy-dark/wall_item.tpl b/view/theme/dispy-dark/wall_item.tpl index b54f753d3..8acaeaf02 100644 --- a/view/theme/dispy-dark/wall_item.tpl +++ b/view/theme/dispy-dark/wall_item.tpl @@ -1,10 +1,12 @@ -
+
- $item.name + + $item.name + menu
    @@ -16,10 +18,10 @@
    {{ if $item.location }}$item.location {{ endif }}
-
- {{ if $item.lock }}
$item.lock
- {{ else }}
{{ endif }} -
+
+ {{ if $item.lock }}
$item.lock
+ {{ else }}
{{ endif }} +
    {{ if $item.star }}
  • @@ -69,7 +71,6 @@
    $item.name
    $item.ago
    -
diff --git a/view/theme/dispy-dark/wallwall_item.tpl b/view/theme/dispy-dark/wallwall_item.tpl index b25d13409..421cddadf 100644 --- a/view/theme/dispy-dark/wallwall_item.tpl +++ b/view/theme/dispy-dark/wallwall_item.tpl @@ -22,43 +22,46 @@
{{ if $item.location }}$item.location {{ endif }}
-
+
+
{{ if $item.lock }}
$item.lock
{{ else }}
{{ endif }} -
-
- {{ if $item.star }} - - - {{ endif }} - - {{ if $item.vote }} - - {{ endif }} +
    + {{ if $item.star }} +
  • + + +
  • + {{ endif }} + {{ if $item.vote }} + + {{ endif }} +

+
    {{ if $item.filer }} -
    +
  • {{ endif }} {{ if $item.plink }} - + {{ endif }} {{ if $item.edpost }} - +
  • {{ endif }} -
    +
  • {{ if $item.drop.dropping }}{{ endif }} -
  • {{ if $item.drop.dropping }}{{ endif }} + +
-
$item.title
@@ -70,7 +73,6 @@ class="icon recycle wall-item-share-buttons" title="$item.vote.share.0" onclick {{ endfor }}
-
$item.name -- cgit v1.2.3