From c29483b88cda69beb51f00ee8f2d262bc6784a24 Mon Sep 17 00:00:00 2001 From: marijus Date: Mon, 2 Feb 2015 15:18:44 +0100 Subject: respect parent dir permissions --- view/tpl/attach_edit.tpl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'view') diff --git a/view/tpl/attach_edit.tpl b/view/tpl/attach_edit.tpl index 5a8743919..4a438e8fd 100644 --- a/view/tpl/attach_edit.tpl +++ b/view/tpl/attach_edit.tpl @@ -22,11 +22,13 @@ {{/if}} + {{if !$isadir}}
+ {{/if}}
{{/if}} +
- -
- {{*/if*}} {{if $entry.public_forum}}
diff --git a/view/tpl/prep.tpl b/view/tpl/prep.tpl index 49dea7d72..924bea252 100644 --- a/view/tpl/prep.tpl +++ b/view/tpl/prep.tpl @@ -12,9 +12,10 @@
{{$r.xchan_name}}
-{{$rating_lbl}} {{$r.xlink_rating}} +
{{$rating_lbl}} {{$r.xlink_rating}}
{{if $r.xlink_rating_text}} -{{$rating_text_label}} {{$r.xlink_rating_text}} +
{{$rating_text_label}} {{$r.xlink_rating_text}} +
{{/if}}
-- cgit v1.2.3 From 8a78d1d5dfcb048b83345c0d832c71303de04cd5 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 3 Feb 2015 15:52:57 -0800 Subject: that didn't look so good on a small screen - let it hang out on the right margin --- view/css/mod_directory.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'view') diff --git a/view/css/mod_directory.css b/view/css/mod_directory.css index b156e322a..1e140d933 100644 --- a/view/css/mod_directory.css +++ b/view/css/mod_directory.css @@ -3,13 +3,12 @@ clear: both; } .directory-name { -/* text-align: center; */ float: left; width: 250px; } .directory-rating { float: right; - margin-right: 20px; + margin-right: 5px; } .directory-photo { -- cgit v1.2.3 From 5cb2f55dbbe715219dd18c60345e341ed478a753 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 3 Feb 2015 16:52:09 -0800 Subject: rating form work --- view/css/mod_directory.css | 7 +++++++ view/js/mod_directory.js | 9 +++++++++ view/tpl/direntry.tpl | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) (limited to 'view') diff --git a/view/css/mod_directory.css b/view/css/mod_directory.css index 1e140d933..e93f23ec6 100644 --- a/view/css/mod_directory.css +++ b/view/css/mod_directory.css @@ -10,6 +10,13 @@ float: right; margin-right: 5px; } +.directory-slider { + padding: 15px; + width: 100px; +} +.directory-rating-text { + margin-top: 30px; +} .directory-photo { margin-left: 25px; diff --git a/view/js/mod_directory.js b/view/js/mod_directory.js index 74c8b414d..60bfe98ba 100644 --- a/view/js/mod_directory.js +++ b/view/js/mod_directory.js @@ -3,9 +3,18 @@ function dirdetails(hash) { $.get('dirprofile' + '?f=&hash=' + hash, function( data ) { $.colorbox({ maxWidth: "50%", maxHeight: "75%", html: data }); }); +} + + +function doRatings(hash) { + + var html = '
'; + + $.colorbox({maxwidth: "50%", maxHeight: "50%", html: html }); } + $(document).ready(function() { collapseHeight(); }); \ No newline at end of file diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl index 1761ed12d..461c5dcde 100755 --- a/view/tpl/direntry.tpl +++ b/view/tpl/direntry.tpl @@ -17,7 +17,7 @@ {{*if $entry.rateme*}}
{{if $entry.total_ratings}}{{/if}} - +
{{*/if*}} {{if $entry.public_forum}} -- cgit v1.2.3 From 17ffe122b309610208d769f0e2b41f53fcf9d254 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 3 Feb 2015 18:10:55 -0800 Subject: ratings - mopping up, most everything but directory sync implemented --- view/css/mod_directory.css | 16 +++++++++++++--- view/js/mod_directory.js | 4 ++-- view/theme/redbasic/css/style.css | 9 +++++++++ view/tpl/direntry.tpl | 6 +++--- view/tpl/js_strings.tpl | 3 +++ 5 files changed, 30 insertions(+), 8 deletions(-) (limited to 'view') diff --git a/view/css/mod_directory.css b/view/css/mod_directory.css index e93f23ec6..d4cf23b39 100644 --- a/view/css/mod_directory.css +++ b/view/css/mod_directory.css @@ -10,14 +10,24 @@ float: right; margin-right: 5px; } -.directory-slider { + +.slider-container { padding: 15px; - width: 100px; } -.directory-rating-text { + +.rating-text { margin-top: 30px; } +.directory-rating-text { + width: 90%; + margin-left: 5%; +} + +.directory-rating-submit { + margin-top: 15px; +} + .directory-photo { margin-left: 25px; } diff --git a/view/js/mod_directory.js b/view/js/mod_directory.js index 60bfe98ba..09b103352 100644 --- a/view/js/mod_directory.js +++ b/view/js/mod_directory.js @@ -8,9 +8,9 @@ function dirdetails(hash) { function doRatings(hash) { - var html = '
'; + var html = '
'+aStr['rating_desc']+'
'+aStr['rating_text']+'
'; - $.colorbox({maxwidth: "50%", maxHeight: "50%", html: html }); + $.colorbox({maxwidth: "50%", maxHeight: "50%", html: html, close: 'X' }); } diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index c637f30e4..cebc516da 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -575,6 +575,15 @@ footer { #cboxContent { color: $dirpopup_txtcol; + margin: 5px; +} + +#cboxClose { + margin: 10px; +} + +#colorbox { + margin: 5px; } #cboxContent a { diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl index 461c5dcde..1b84bca56 100755 --- a/view/tpl/direntry.tpl +++ b/view/tpl/direntry.tpl @@ -15,11 +15,11 @@
{{$entry.name}}{{if $entry.online}} {{/if}}
-{{*if $entry.rateme*}} +{{if $entry.viewrate}}
{{if $entry.total_ratings}}{{/if}} - +{{if $entry.canrate}}{{/if}}
-{{*/if*}} +{{/if}} {{if $entry.public_forum}}
{{$entry.forum_label}} @{{$entry.nickname}}+ diff --git a/view/tpl/js_strings.tpl b/view/tpl/js_strings.tpl index eb78c669f..9cfd84cf8 100755 --- a/view/tpl/js_strings.tpl +++ b/view/tpl/js_strings.tpl @@ -16,6 +16,9 @@ 'permschange' : "{{$permschange}}", 'closeAll' : "{{$closeAll}}", 'nothingnew' : "{{$nothingnew}}", + 'rating_desc' : "{{$rating_desc}}", + 'rating_val' : "{{$rating_val}}", + 'rating_text' : "{{$rating_text}}", 't01' : "{{$t01}}", 't02' : "{{$t02}}", -- cgit v1.2.3 From 4ead2cd79d3c7e5c29a11785a3ceefef6d3ba93f Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 3 Feb 2015 21:19:29 -0800 Subject: final cleanup on ratings feature --- view/css/mod_directory.css | 2 +- view/css/mod_events.css | 5 ----- view/js/mod_directory.js | 28 ++++++++++++++++++++++++++-- view/theme/redbasic/css/style.css | 5 ++++- view/tpl/direntry.tpl | 2 +- view/tpl/js_strings.tpl | 1 + 6 files changed, 33 insertions(+), 10 deletions(-) (limited to 'view') diff --git a/view/css/mod_directory.css b/view/css/mod_directory.css index d4cf23b39..c562764ea 100644 --- a/view/css/mod_directory.css +++ b/view/css/mod_directory.css @@ -15,7 +15,7 @@ padding: 15px; } -.rating-text { +.rating-text-label { margin-top: 30px; } diff --git a/view/css/mod_events.css b/view/css/mod_events.css index 0aef13aa6..ba4ec9b61 100644 --- a/view/css/mod_events.css +++ b/view/css/mod_events.css @@ -10,8 +10,3 @@ margin-top: 15px; width: 400px; } - -.required { - color: #ff0000; - font-size: 1.2rem; -} \ No newline at end of file diff --git a/view/js/mod_directory.js b/view/js/mod_directory.js index 09b103352..87e4f92b5 100644 --- a/view/js/mod_directory.js +++ b/view/js/mod_directory.js @@ -6,14 +6,38 @@ function dirdetails(hash) { } +var ratingVal = 0; +var ratingText = ''; +var currentHash = ''; + +function fetchRatings(hash) { + $.get('prate/'+hash, function(data) { + if(typeof(data.rating) !== 'undefined') { + ratingVal = data.rating; + ratingText = data.rating_text; + } + buildRatingForm(hash); + }); +} + + function doRatings(hash) { + fetchRatings(hash); +} - var html = '
'+aStr['rating_desc']+'
'+aStr['rating_text']+'
'; +function buildRatingForm(hash) { + var html = '
'+aStr['rating_desc']+'
'+aStr['rating_text']+'
'; $.colorbox({maxwidth: "50%", maxHeight: "50%", html: html, close: 'X' }); - + currentHash = hash; } +function postRatings() { + $.post('prate',$('#ratings_form').serialize(),function(data) { + $.colorbox.remove(); + $('#edited-'+currentHash).show(); + },'json'); +} $(document).ready(function() { collapseHeight(); diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index cebc516da..cb58b6e11 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1185,9 +1185,12 @@ nav .acpopup { .required { - color: #FF0000; + color: #ff0000; + font-size: 1.8rem; + margin-left: 5px; } + #event-start-text, #event-finish-text { margin-top: 10px; margin-bottom: 5px; diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl index 1b84bca56..b0a1084e8 100755 --- a/view/tpl/direntry.tpl +++ b/view/tpl/direntry.tpl @@ -17,7 +17,7 @@ {{if $entry.viewrate}}
{{if $entry.total_ratings}}{{/if}} -{{if $entry.canrate}}{{/if}} +{{if $entry.canrate}}{{/if}}
{{/if}} {{if $entry.public_forum}} diff --git a/view/tpl/js_strings.tpl b/view/tpl/js_strings.tpl index 9cfd84cf8..4eb9ae844 100755 --- a/view/tpl/js_strings.tpl +++ b/view/tpl/js_strings.tpl @@ -19,6 +19,7 @@ 'rating_desc' : "{{$rating_desc}}", 'rating_val' : "{{$rating_val}}", 'rating_text' : "{{$rating_text}}", + 'submit' : "{{$submit}}", 't01' : "{{$t01}}", 't02' : "{{$t02}}", -- cgit v1.2.3 From 127bf82187c266c2202fd33003e60b5061778cd7 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 3 Feb 2015 23:30:07 -0800 Subject: probably enough for now - couldn't get the censorship filter in today, I think that's the only bit missing. --- view/tpl/direntry.tpl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'view') diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl index b0a1084e8..db098baa1 100755 --- a/view/tpl/direntry.tpl +++ b/view/tpl/direntry.tpl @@ -1,8 +1,8 @@ -
+
-
-
-{{$entry.alttext}} +
+
+{{$entry.alttext}} {{if $entry.connect}} {{/if}} @@ -13,10 +13,10 @@
-
{{$entry.name}}{{if $entry.online}} {{/if}}
+
{{$entry.name}}{{if $entry.online}} {{/if}}
{{if $entry.viewrate}} -
{{if $entry.total_ratings}}{{/if}} +
{{if $entry.total_ratings}}{{/if}} {{if $entry.canrate}}{{/if}}
{{/if}} -- cgit v1.2.3 From 398894851628ccb99090e9d70b92a9a909ef7015 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 4 Feb 2015 15:48:39 -0800 Subject: first cut at rating widget. The flaw is that it is limited because it requires local_channel() (formerly local_user()). We need to extend this to take you home like rpost does if you're logged in as remote_channel() - and/or we need zot to send the rating message to the source channel and target in addition to the directories. --- view/css/mod_directory.css | 21 --------------------- view/css/widgets.css | 24 ++++++++++++++++++++++++ view/pdl/mod_ratings.pdl | 1 + view/theme/redbasic/css/style.css | 23 +++++++++++++++++++++-- view/tpl/profile_vcard.tpl | 3 ++- 5 files changed, 48 insertions(+), 24 deletions(-) (limited to 'view') diff --git a/view/css/mod_directory.css b/view/css/mod_directory.css index c562764ea..7b149d744 100644 --- a/view/css/mod_directory.css +++ b/view/css/mod_directory.css @@ -6,27 +6,6 @@ float: left; width: 250px; } -.directory-rating { - float: right; - margin-right: 5px; -} - -.slider-container { - padding: 15px; -} - -.rating-text-label { - margin-top: 30px; -} - -.directory-rating-text { - width: 90%; - margin-left: 5%; -} - -.directory-rating-submit { - margin-top: 15px; -} .directory-photo { margin-left: 25px; diff --git a/view/css/widgets.css b/view/css/widgets.css index 4db87e633..43d132276 100644 --- a/view/css/widgets.css +++ b/view/css/widgets.css @@ -104,3 +104,27 @@ li:hover .group-edit-icon { .chatroomlist td { padding: 0 5px 0; } + +/* ratings */ + +.directory-rating { + float: right; + margin-right: 5px; +} + +.slider-container { + padding: 15px; +} + +.rating-text-label { + margin-top: 30px; +} + +.directory-rating-text { + width: 90%; + margin-left: 5%; +} + +.directory-rating-submit { + margin-top: 15px; +} diff --git a/view/pdl/mod_ratings.pdl b/view/pdl/mod_ratings.pdl index 3d40386cd..0b6e32283 100644 --- a/view/pdl/mod_ratings.pdl +++ b/view/pdl/mod_ratings.pdl @@ -1,5 +1,6 @@ [region=aside] [widget=vcard][/widget] +[widget=rating][/widget] [widget=suggestions][/widget] [widget=findpeople][/widget] [/region] diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index cb58b6e11..32ded75ba 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -771,6 +771,19 @@ footer { clear: both; } +div.rateme { + display: block; + color: $nav_active_icon_colour; + background-color: $nav_bg; + -webkit-border-radius: $radiuspx ; + -moz-border-radius: $radiuspx; + border-radius: $radiuspx; + border: 1px solid $nav_bd; + padding: 5px; + font-weight: bold; + clear: both; +} + #pause { position: fixed; bottom: 5px; @@ -1442,16 +1455,22 @@ div.jGrowl div.jGrowl-notification { width: 90%; } -a.rconnect { +a.rconnect, div.rateme { color: $nav_active_icon_colour; text-decoration: none; + font-weight: normal; outline: none; } -a.rconnect:hover { +a.rconnect:hover, div.rateme:hover { color: #0080FF; + text-decoration: none; } +.widget.rateme { + margin-top: 15px; + padding: 0; +} /* header */ header { diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl index bff3148f3..bc093ebb5 100755 --- a/view/tpl/profile_vcard.tpl +++ b/view/tpl/profile_vcard.tpl @@ -50,10 +50,11 @@ {{if $connect}} {{$connect}} {{/if}} - +
+ {{$chanmenu}} {{$contact_block}} -- cgit v1.2.3 From 48a145a8ed341c1f28f941be2eaab053c172e3f1 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 4 Feb 2015 15:52:12 -0800 Subject: add the required js file --- view/js/ratings.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 view/js/ratings.js (limited to 'view') diff --git a/view/js/ratings.js b/view/js/ratings.js new file mode 100644 index 000000000..3d48ecca5 --- /dev/null +++ b/view/js/ratings.js @@ -0,0 +1,34 @@ + +var ratingVal = 0; +var ratingText = ''; +var currentHash = ''; + +function fetchRatings(hash) { + $.get('prate/'+hash, function(data) { + if(typeof(data.rating) !== 'undefined') { + ratingVal = data.rating; + ratingText = data.rating_text; + } + buildRatingForm(hash); + }); +} + + +function doRatings(hash) { + fetchRatings(hash); +} + +function buildRatingForm(hash) { + var html = '
'+aStr['rating_desc']+'
'+aStr['rating_text']+'
'; + + $.colorbox({maxwidth: "50%", maxHeight: "50%", html: html, close: 'X' }); + currentHash = hash; +} + +function postRatings() { + $.post('prate',$('#ratings_form').serialize(),function(data) { + $.colorbox.remove(); + $('#edited-'+currentHash).show(); + },'json'); +} + -- cgit v1.2.3 From 561bab4ece9fa5844a0cb00f3cbd75e0855b2796 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 4 Feb 2015 17:32:29 -0800 Subject: remote rating and addition of rate-me to channel profile sidebar --- view/css/mod_rate.css | 8 ++++++++ view/pdl/mod_rate.pdl | 3 +++ view/theme/redbasic/css/style.css | 6 +++--- view/tpl/profile_vcard.tpl | 2 ++ view/tpl/rating_form.tpl | 22 ++++++++++++++++++++++ 5 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 view/css/mod_rate.css create mode 100644 view/pdl/mod_rate.pdl create mode 100644 view/tpl/rating_form.tpl (limited to 'view') diff --git a/view/css/mod_rate.css b/view/css/mod_rate.css new file mode 100644 index 000000000..58e87b9b4 --- /dev/null +++ b/view/css/mod_rate.css @@ -0,0 +1,8 @@ +#rating-slider { + width: 600px !important; +} + +#rating-text { + width: 400px; + height: 60px; +} diff --git a/view/pdl/mod_rate.pdl b/view/pdl/mod_rate.pdl new file mode 100644 index 000000000..d8f50ad7a --- /dev/null +++ b/view/pdl/mod_rate.pdl @@ -0,0 +1,3 @@ +[region=aside] +[widget=vcard][/widget] +[/region] diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 32ded75ba..1aa7cc729 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -771,7 +771,7 @@ footer { clear: both; } -div.rateme { +a.rateme, div.rateme { display: block; color: $nav_active_icon_colour; background-color: $nav_bg; @@ -1455,14 +1455,14 @@ div.jGrowl div.jGrowl-notification { width: 90%; } -a.rconnect, div.rateme { +a.rconnect, a.rateme, div.rateme { color: $nav_active_icon_colour; text-decoration: none; font-weight: normal; outline: none; } -a.rconnect:hover, div.rateme:hover { +a.rconnect:hover, a.rateme:hover, div.rateme:hover { color: #0080FF; text-decoration: none; } diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl index bc093ebb5..cae920c5d 100755 --- a/view/tpl/profile_vcard.tpl +++ b/view/tpl/profile_vcard.tpl @@ -51,6 +51,8 @@ {{$connect}} {{/if}} +{{$rating}} +
diff --git a/view/tpl/rating_form.tpl b/view/tpl/rating_form.tpl new file mode 100644 index 000000000..216bf6ede --- /dev/null +++ b/view/tpl/rating_form.tpl @@ -0,0 +1,22 @@ +

{{$header}}

+ +
{{$tgt_name}}
+ +

{{$lbl_rating}}

+ +
+ +{{$rating}} + + + + + +

{{$lbl_rating_txt}}

+ + +
+ + + +
\ No newline at end of file -- cgit v1.2.3 From 331c72b3be4e6b2c469d14be2bd4d057e7de1dec Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 5 Feb 2015 14:46:08 -0800 Subject: author profile photo in reshare wasn't linked --- view/theme/redbasic/css/style.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'view') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 1aa7cc729..4afeac0b0 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -162,6 +162,18 @@ header { filter:alpha(opacity=$nav_percent_min_opacity); } +/* experimental - increase size of notification counts on hover + * to make the notification dropdowns more accessible on portable devices. + * Currently they are mostly inaccessible without using huge magnifications. + * The question is if you can actually hover on a portable touchscreen device. + +.badge.dropdown-toggle:hover { + width: 2rem; + height: 2rem; +} + +*/ + #powered-by { font-size: 0.5rem; position: absolute; -- cgit v1.2.3 From 1b5bd1d808637696b31f197c2b2194f00b903952 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 5 Feb 2015 15:11:51 -0800 Subject: increase size of rating value to make it stand out a bit. --- view/css/mod_ratings.css | 5 +++++ view/theme/redbasic/css/style.css | 12 ------------ view/tpl/prep.tpl | 2 +- 3 files changed, 6 insertions(+), 13 deletions(-) (limited to 'view') diff --git a/view/css/mod_ratings.css b/view/css/mod_ratings.css index 86d6f5ed3..c9f75c58c 100644 --- a/view/css/mod_ratings.css +++ b/view/css/mod_ratings.css @@ -13,4 +13,9 @@ .rating-value { margin-top: 10px; +} + +.prep-rating-value { + margin-left: 10px; + font-size: 1.5rem; } \ No newline at end of file diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 4afeac0b0..1aa7cc729 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -162,18 +162,6 @@ header { filter:alpha(opacity=$nav_percent_min_opacity); } -/* experimental - increase size of notification counts on hover - * to make the notification dropdowns more accessible on portable devices. - * Currently they are mostly inaccessible without using huge magnifications. - * The question is if you can actually hover on a portable touchscreen device. - -.badge.dropdown-toggle:hover { - width: 2rem; - height: 2rem; -} - -*/ - #powered-by { font-size: 0.5rem; position: absolute; diff --git a/view/tpl/prep.tpl b/view/tpl/prep.tpl index 924bea252..9ebe3ac54 100644 --- a/view/tpl/prep.tpl +++ b/view/tpl/prep.tpl @@ -12,7 +12,7 @@
{{$r.xchan_name}}
-
{{$rating_lbl}} {{$r.xlink_rating}}
+
{{$rating_lbl}} {{$r.xlink_rating}}
{{if $r.xlink_rating_text}}
{{$rating_text_label}} {{$r.xlink_rating_text}}
-- cgit v1.2.3 From 68978ad1c08daeb55581b95b4328905df42c847b Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 5 Feb 2015 15:28:46 -0800 Subject: collapse overly-verbose ratings --- view/js/mod_ratings.js | 4 ++++ view/tpl/prep.tpl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 view/js/mod_ratings.js (limited to 'view') diff --git a/view/js/mod_ratings.js b/view/js/mod_ratings.js new file mode 100644 index 000000000..0f7cab5e3 --- /dev/null +++ b/view/js/mod_ratings.js @@ -0,0 +1,4 @@ + +$(document).ready(function() { + collapseHeight(); +}); diff --git a/view/tpl/prep.tpl b/view/tpl/prep.tpl index 9ebe3ac54..83a86372c 100644 --- a/view/tpl/prep.tpl +++ b/view/tpl/prep.tpl @@ -10,7 +10,7 @@ {{$r.xchan_addr}}
-
+
{{$r.xchan_name}}
{{$rating_lbl}} {{$r.xlink_rating}}
{{if $r.xlink_rating_text}} -- cgit v1.2.3