spacevillain (spacevillain) wrote in changelog,
spacevillain
spacevillain
changelog

[ljcom] r11884: LJSUP-12032: Display social capital in t...

Committer: atyurin
LJSUP-12032: Display social capital in the contextual hover
A   trunk/templates/Widgets/contextualHover.jqtmpl
Added: trunk/templates/Widgets/contextualHover.jqtmpl
===================================================================
--- trunk/templates/Widgets/contextualHover.jqtmpl	                        (rev 0)
+++ trunk/templates/Widgets/contextualHover.jqtmpl	2012-05-04 10:45:41 UTC (rev 11884)
@@ -0,0 +1,50 @@
+{{if userpic }}
+	<div class="b-contextualhover-side">
+		<div class="b-contextualhover-userpic">
+			<a href="${userpic.allpics}"><img src="${userpic.pic}" alt="" /></a>
+		</div>
+	</div>
+{{/if}}
+
+<div class="b-contextualhover-section">
+	<div class="b-contextualhover-title">
+		<h3>{{html title.title}}</h3>
+		{{each headLinks}}
+				<p>{{if $value.url}}<a href="${$value.url}">${$value.text}</a>
+				{{else}}{{html $value}}{{/if}}</p> 
+		{{/each}}
+	</div>
+
+	{{if socialCap.value}}
+		{{if socialCap.first}}
+			<span class="b-icon">FIRST_ICON</span>
+		{{else}}
+			<span class="b-icon">NOT_FIRST_ICON</span>
+		{{/if}}
+	{{/if}}<p class="soc_cap">${socialCap.value}</p>
+
+	{{each(i, group) linkGroups}}
+		{{if group.length }}
+		<ul class="b-contextualhover-options">
+			{{each group}}<li>
+				{{if $value.url}}<a href="${$value.url}">${$value.text}</a>
+				{{else}}{{html $value}}{{/if}}
+			</li>{{/each}}
+		</ul>
+		{{/if}}
+	{{/each}}
+
+	{{if showBanOptions }}
+		<ul class="b-contextualhover-options">
+			{{if reportBot}}<li><a href="${reportBot.url}">${reportBot.text}</a></li>{{/if}}
+			<li class="b-contextualhover-options-ban">
+				<p>${banUsersLink.text}:</p>
+				{{if banCheckboxes}}<div class="b-contextualhover-options-wrap">
+					{{each banCheckboxes}}
+					<p><label><input type="checkbox" class="input-checkbox ${$value.className}" {{if $value.checked}}checked{{/if}} /> ${$value.label}</label></p>
+					{{/each}}
+				</div>{{/if}}
+			</li>
+		</ul>
+	{{/if}}
+</div>
\ No newline at end of file

Tags: atyurin, jqtmpl, ljcom, spacevillain
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments