diff options
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/attach_edit.tpl | 2 | ||||
-rwxr-xr-x | view/tpl/direntry.tpl | 23 | ||||
-rwxr-xr-x | view/tpl/js_strings.tpl | 4 | ||||
-rw-r--r-- | view/tpl/prep.tpl | 7 | ||||
-rwxr-xr-x | view/tpl/profile_vcard.tpl | 5 | ||||
-rw-r--r-- | view/tpl/rating_form.tpl | 22 | ||||
-rwxr-xr-x | view/tpl/xchan_vcard.tpl | 11 |
7 files changed, 45 insertions, 29 deletions
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 @@ </label> </div> {{/if}} + {{if !$isadir}} <div id="attach-edit-activity" class="btn-group" data-toggle="buttons"> <label class="btn btn-default btn-xs" title="{{$activity_btn_title}}"> <input type="checkbox" autocomplete="off" name="no_activity" value="1"><i class="icon-ban-circle jot-icons"></i> </label> </div> + {{/if}} <div id="attach-edit-perms" class="btn-group"> <button id="dbtn-acl" class="btn btn-default btn-xs" data-toggle="modal" data-target="#aclModal" title="{{$permset}}" onclick="return false;"> <i id="jot-perms-icon" class="icon-{{$lockstate}} jot-icons"></i> diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl index 6ba86a085..db098baa1 100755 --- a/view/tpl/direntry.tpl +++ b/view/tpl/direntry.tpl @@ -1,8 +1,8 @@ -<div class="directory-item lframe" id="directory-item-{{$entry.id}}" > +<div class="directory-item lframe{{if $entry.safe}} safe{{/if}}" id="directory-item-{{$entry.hash}}" > -<div class="contact-photo-wrapper" id="directory-photo-wrapper-{{$entry.id}}" > -<div class="contact-photo" id="directory-photo-{{$entry.id}}" > -<a href="{{$entry.profile_link}}" class="directory-profile-link" id="directory-profile-link-{{$entry.id}}" ><img class="directory-photo-img" src="{{$entry.photo}}" alt="{{$entry.alttext}}" title="{{$entry.alttext}}" /></a> +<div class="contact-photo-wrapper" id="directory-photo-wrapper-{{$entry.hash}}" > +<div class="contact-photo" id="directory-photo-{{$entry.hash}}" > +<a href="{{$entry.profile_link}}" class="directory-profile-link" id="directory-profile-link-{{$entry.hash}}" ><img class="directory-photo-img" src="{{$entry.photo}}" alt="{{$entry.alttext}}" title="{{$entry.alttext}}" /></a> {{if $entry.connect}} <div class="directory-connect btn btn-default"><a href="{{$entry.connect}}"><i class="icon-plus connect-icon"></i> {{$entry.conn_label}}</a></div> {{/if}} @@ -13,19 +13,12 @@ </div> <div class='contact-info'> -<div class="contact-name" id="directory-name-{{$entry.id}}" ><a href='{{$entry.profile_link}}' >{{$entry.name}}</a>{{if $entry.online}} <i class="icon-asterisk online-now" title="{{$entry.online}}"></i>{{/if}}</div> +<div class="contact-name" id="directory-name-{{$entry.hash}}" ><a href='{{$entry.profile_link}}' >{{$entry.name}}</a>{{if $entry.online}} <i class="icon-asterisk online-now" title="{{$entry.online}}"></i>{{/if}}</div> -{{if $entry.rateme}} -<div id="dir-rating-wrapper-{{$entry.id}}" style="float:right; width: 20%;"> -62 ratings<br /> -<div id="dir-rating-slider-{{$entry.id}}" class="dir-slider" style="height: 32px; margin-right:10px;"> -<input id="dir-rating-range-{{$entry.id}}" type="text" value="0" name="fake-rating-{{$entry.id}}" style="display: none;"> +{{if $entry.viewrate}} +<div id="dir-rating-wrapper-{{$entry.hash}}" class="directory-rating" >{{if $entry.total_ratings}}<a href="ratings/{{$entry.hash}}"><button class="btn btn-default">{{$entry.total_ratings}}</button></a>{{/if}} +{{if $entry.canrate}}<button class="btn btn-default" onclick="doRatings('{{$entry.hash}}'); return false;" ><i class="icon-pencil"></i></button><span class="required" id="edited-{{$entry.hash}}" style="display: none;" >*</span>{{/if}} </div> -</div> -<div class="clear"></div> -<script> -$("#dir-rating-range-{{$entry.id}}").jRange({ from: -10, to: 10, step: 1, width:'100%', showLabels: false, showScale: true, scale : [ '-10','-5','0','5','10' ], onstatechange: function(v) { $("#contact-rating-mirror").val(v); } }); -</script> {{/if}} {{if $entry.public_forum}} <div class="contact-forum"> diff --git a/view/tpl/js_strings.tpl b/view/tpl/js_strings.tpl index eb78c669f..4eb9ae844 100755 --- a/view/tpl/js_strings.tpl +++ b/view/tpl/js_strings.tpl @@ -16,6 +16,10 @@ 'permschange' : "{{$permschange}}", 'closeAll' : "{{$closeAll}}", 'nothingnew' : "{{$nothingnew}}", + 'rating_desc' : "{{$rating_desc}}", + 'rating_val' : "{{$rating_val}}", + 'rating_text' : "{{$rating_text}}", + 'submit' : "{{$submit}}", 't01' : "{{$t01}}", 't02' : "{{$t02}}", diff --git a/view/tpl/prep.tpl b/view/tpl/prep.tpl index 49dea7d72..83a86372c 100644 --- a/view/tpl/prep.tpl +++ b/view/tpl/prep.tpl @@ -10,11 +10,12 @@ <a href="{{$r.xchan_url}}" class="directory-profile-link" id="directory-profile-link-{{$r.xchan_hash}}" ><img class="directory-photo-img" src="{{$r.xchan_photo_m}}" alt="{{$r.xchan_addr}}" title="{{$r.xchan_addr}}" /></a> </div> </div> -<div class="prep-details"> +<div class="prep-details contact-info"> <a href="{{$r.xchan_url}}" class="directory-profile-link" id="directory-profile-link-{{$r.xchan_hash}}" ><div class="contact-name">{{$r.xchan_name}}</div></a> -{{$rating_lbl}} {{$r.xlink_rating}} +<div class="rating-value">{{$rating_lbl}} <span class="prep-rating-value">{{$r.xlink_rating}}</span></div> {{if $r.xlink_rating_text}} -{{$rating_text_label}} {{$r.xlink_rating_text}} +<div class="rating-text">{{$rating_text_label}} {{$r.xlink_rating_text}} +</div> {{/if}} </div> <div class="clear"></div> diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl index bff3148f3..cae920c5d 100755 --- a/view/tpl/profile_vcard.tpl +++ b/view/tpl/profile_vcard.tpl @@ -50,10 +50,13 @@ {{if $connect}} <a href="{{$connect_url}}" class="rconnect"><i class="icon-plus connect-icon"></i> {{$connect}}</a> {{/if}} - + +{{$rating}} + </div> <div id="vcard-end"></div> + {{$chanmenu}} {{$contact_block}} 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 @@ +<h3>{{$header}}</h3> + +<div class="rating-target-name">{{$tgt_name}}</div> + +<h3>{{$lbl_rating}}</h3> + +<form action="rate" method="post"> + +{{$rating}} + +<input type="hidden" name="execute" value="1" /> +<input type="hidden" name="target" value="{{$target}}" /> + +<input id="contact-rating-mirror" type="hidden" name="rating" value="{{$rating_val}}" /> +<h3 class="abook-rating-text-desc">{{$lbl_rating_txt}}</h3> +<textarea name="rating_text" id="rating-text" >{{$rating_txt}}</textarea> + +<div class="clear"></div> + +<input class="contact-edit-submit" type="submit" name="done" value="{{$submit}}" /> + +</form>
\ No newline at end of file diff --git a/view/tpl/xchan_vcard.tpl b/view/tpl/xchan_vcard.tpl index b72250bec..ca0fe76be 100755 --- a/view/tpl/xchan_vcard.tpl +++ b/view/tpl/xchan_vcard.tpl @@ -5,16 +5,7 @@ {{if $mode != 'mail'}} -<div id="profile-extra-links"> -<ul> {{if $connect}} - <li><a id="follow-link" href="follow?f=&url={{$follow}}">{{$connect}}</a></li> + <a href="follow?f=&url={{$follow}}" class="rconnect"><i class="icon-plus connect-icon"></i> {{$connect}}</a> {{/if}} -{{if $newwin}} - <li><a id="visit-chan-link" href="{{$url}}" title="{{$newtit}}" target="_blank" >{{$newwin}}</a></li> -{{/if}} -</ul> - - -</div> {{/if}} |