From c417a43338087de82bd1c067c479320a923fe619 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 3 Feb 2015 15:50:12 -0800 Subject: styling for the directory page when it comes to ratings --- view/css/mod_directory.css | 9 ++++++++- view/css/mod_ratings.css | 4 ++++ view/tpl/direntry.tpl | 11 ++--------- view/tpl/prep.tpl | 5 +++-- 4 files changed, 17 insertions(+), 12 deletions(-) (limited to 'view') diff --git a/view/css/mod_directory.css b/view/css/mod_directory.css index 20facbaf8..b156e322a 100644 --- a/view/css/mod_directory.css +++ b/view/css/mod_directory.css @@ -3,8 +3,15 @@ clear: both; } .directory-name { - text-align: center; +/* text-align: center; */ + float: left; + width: 250px; } +.directory-rating { + float: right; + margin-right: 20px; +} + .directory-photo { margin-left: 25px; } diff --git a/view/css/mod_ratings.css b/view/css/mod_ratings.css index bb29086da..86d6f5ed3 100644 --- a/view/css/mod_ratings.css +++ b/view/css/mod_ratings.css @@ -9,4 +9,8 @@ .directory-item { margin: 10px; +} + +.rating-value { + margin-top: 10px; } \ No newline at end of file diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl index 450bddd95..1761ed12d 100755 --- a/view/tpl/direntry.tpl +++ b/view/tpl/direntry.tpl @@ -16,16 +16,9 @@
{{$entry.name}}{{if $entry.online}} {{/if}}
{{*if $entry.rateme*}} -
{{if $entry.total_ratings}} -{{$entry.total_ratings}}{{/if}}
-
- +
{{if $entry.total_ratings}}{{/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