From a4775aab9b823523dd91246cbbb7fec3375b214d Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 22 Jun 2015 14:02:14 +0200 Subject: Bring /help in line with the rest of the app --- view/tpl/help.tpl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'view') diff --git a/view/tpl/help.tpl b/view/tpl/help.tpl index e01243077..22180bda6 100644 --- a/view/tpl/help.tpl +++ b/view/tpl/help.tpl @@ -1,3 +1,8 @@ -
-{{$content}} +
+
+

{{$title}}

+
+
+ {{$content}} +
-- cgit v1.2.3 From b6c4601d8fe96d53428697dd98d085f3602b2e6e Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 23 Jun 2015 13:06:22 +0200 Subject: some work on directory --- view/css/mod_directory.css | 73 +++++----------------------- view/js/main.js | 2 +- view/js/mod_directory.js | 2 +- view/tpl/directory_header.tpl | 22 ++++----- view/tpl/direntry.tpl | 109 ++++++++++++++++++++++++++---------------- 5 files changed, 92 insertions(+), 116 deletions(-) (limited to 'view') diff --git a/view/css/mod_directory.css b/view/css/mod_directory.css index 7b149d744..d3831e589 100644 --- a/view/css/mod_directory.css +++ b/view/css/mod_directory.css @@ -1,76 +1,29 @@ - -.directory-end { - clear: both; -} -.directory-name { - float: left; - width: 250px; -} - -.directory-photo { - margin-left: 25px; -} .directory-photo-img { - margin-left: auto; - margin-right: auto; - display:block; width: 80px; height: 80px; -} -.directory-details { - text-align: center; - margin-left: 5px; - margin-right: 5px; -} -.directory-item { - overflow: hidden; - margin: 2px; - border-bottom: 2px solid #f1f1f1; - padding-bottom: 3px; -} - -#directory-search-wrapper { - margin-top: 20px; - margin-right: 20px; - margin-bottom: 50px; -} - -#directory-search-end { -} - -.directory-photo-img { border: none; } -div.dirtagblock.widget { - overflow: hidden; +.directory-item { + margin-bottom: 20px; } -.dirpopup { - float: left; - width: 225px; +.contact-photo-wrapper { + display: table-cell; + vertical-align: top; } -.contact-photo { - float: left; - margin-right: 16px; +.contact-info { + display: table-cell; + vertical-align: top; + padding-left: 10px; } -.contact-name { - font-size: larger; +.contact-info-label { + font-weight: bold; } -.contact-info { - display: block; - overflow: hidden; +.section-subtitle-wrapper .btn-xs { + margin-top: -2px; } -.directory-item { - margin: 16px; -} -.directory-connect { - margin-top: 3px; - display:block; - margin-left:auto; - margin-right: auto; -} diff --git a/view/js/main.js b/view/js/main.js index 625ac5b01..698e2d79c 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -615,7 +615,7 @@ function updateConvItems(mode,data) { function collapseHeight() { - $(".wall-item-body, .contact-info").each(function() { + $(".wall-item-body, .directory-collapse").each(function() { var orgHeight = $(this).height(); if(orgHeight > divmore_height + 10) { if(! $(this).hasClass('divmore')) { diff --git a/view/js/mod_directory.js b/view/js/mod_directory.js index 90942f9ac..e850963c1 100644 --- a/view/js/mod_directory.js +++ b/view/js/mod_directory.js @@ -38,4 +38,4 @@ function postRatings() { $(document).ready(function() { collapseHeight(); -}); \ No newline at end of file +}); diff --git a/view/tpl/directory_header.tpl b/view/tpl/directory_header.tpl index 477df8a63..26739efc3 100755 --- a/view/tpl/directory_header.tpl +++ b/view/tpl/directory_header.tpl @@ -1,16 +1,12 @@ -
-

{{$dirlbl}}

- -{{if $search}} -

{{$finddsc}} {{$safetxt}}

-{{/if}} - -{{foreach $entries as $entry}} -{{include file="direntry.tpl"}} -{{/foreach}} - -
-
+
+
+

{{$dirlbl}}{{if $search}}: {{$safetxt}}{{/if}}

+
+ {{foreach $entries as $entry}} + {{include file="direntry.tpl"}} + {{/foreach}} +
+
diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl index 0608bca0a..3450ad36d 100755 --- a/view/tpl/direntry.tpl +++ b/view/tpl/direntry.tpl @@ -1,46 +1,73 @@ -
+
+
+
+ {{if $entry.viewrate}} + {{if $entry.canrate}}{{/if}} + {{if $entry.total_ratings}}{{$entry.total_ratings}}{{/if}} + {{/if}} + {{if $entry.ignlink}} + {{$entry.ignore_label}} + {{/if}} + {{$entry.conn_label}} +
+

{{if $entry.public_forum}} {{/if}}{{$entry.name}}{{if $entry.online}} {{/if}}

+
+
+
+
+ + {{$entry.alttext}} + +
+
+
+ {{if $entry.common_friends}} +
+ {{$entry.common_label}} {{$entry.common_count}} +
+ {{/if}} -
-
-{{$entry.alttext}} -{{if $entry.connect}} - -{{/if}} -{{if $entry.ignlink}} - -{{/if}} -
-
+ {{if $entry.pdesc}} +
+ {{$entry.pdesc_label}} {{$entry.pdesc}} +
+ {{/if}} -
-
{{$entry.name}}{{if $entry.online}} {{/if}}
+ {{if $entry.age}} +
+ {{$entry.age_label}} {{$entry.age}} +
+ {{/if}} -{{if $entry.viewrate}} -
{{if $entry.total_ratings}}{{/if}} -{{if $entry.canrate}}{{/if}} -
-{{/if}} -{{if $entry.common_friends}} -
{{$entry.common_txt}}
-{{/if}} -{{if $entry.public_forum}} -
-{{$entry.forum_label}} @{{$entry.nickname}}+ -
-{{/if}} + {{if $entry.details}} +
+ {{$entry.location}} {{$entry.details}} +
+ {{/if}} -
{{$entry.details}}
-{{if $entry.hometown}} -
{{$entry.hometown}}
-{{/if}} -{{if $entry.about}} -
{{$entry.about}}
-{{/if}} -{{if $entry.homepage}} -
{{$entry.homepage}}{{$entry.homepageurl}}
-{{/if}} -{{if $entry.kw}} -
{{$entry.kw}} {{$entry.keywords}}
-{{/if}} -
+ {{if $entry.hometown}} +
+ {{$entry.hometown_label}} {{$entry.hometown}} +
+ {{/if}} + + {{if $entry.homepage}} +
+ {{$entry.homepage}} {{$entry.homepageurl}} +
+ {{/if}} + + {{if $entry.kw}} +
+ {{$entry.kw}} {{$entry.keywords}} +
+ {{/if}} + + {{if $entry.about}} +
+ {{$entry.about_label}} {{$entry.about}} +
+ {{/if}} +
+
-- cgit v1.2.3