Clean up and refactor Default Thread template, per bug
"typo + obsolete approve section in flat part of CS Default Thread template".
This commit is contained in:
parent
58b3128a3a
commit
d428c0a0bc
2 changed files with 124 additions and 1 deletions
|
|
@ -30,7 +30,7 @@
|
|||
- Eliminated several hundred queries to the database during certain user
|
||||
profile field options.
|
||||
- Fixed the search function that broke in 7.0.7.
|
||||
|
||||
- fix: typo + obsolete approve section in Collaboration System Default Thread template
|
||||
|
||||
7.0.7
|
||||
- rfe: Image Management (funded by Formation Design Systems)
|
||||
|
|
|
|||
123
docs/upgrades/templates-7.0.8/default_thread.tmpl
Normal file
123
docs/upgrades/templates-7.0.8/default_thread.tmpl
Normal file
|
|
@ -0,0 +1,123 @@
|
|||
#PBtmpl0000000000000032
|
||||
|
||||
<div><a name="id<tmpl_var assetId>" id="id<tmpl_var assetId>"></a></div>
|
||||
|
||||
<tmpl_if session.var.adminOn>
|
||||
<p><tmpl_var controls></p>
|
||||
</tmpl_if>
|
||||
|
||||
|
||||
<div style="float: left; width: 70%">
|
||||
<h2><a href="<tmpl_var collaboration.url>"><tmpl_var collaboration.title></a></h2>
|
||||
</div>
|
||||
<div style="width: 30%; float: left; text-align: right;">
|
||||
<tmpl_if layout.isFlat>
|
||||
<a href="<tmpl_var layout.nested.url>"><tmpl_var layout.nested.label></a>
|
||||
<tmpl_else>
|
||||
<a href="<tmpl_var layout.flat.url>"><tmpl_var layout.flat.label></a>
|
||||
</tmpl_if>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<tmpl_loop post_loop>
|
||||
<tmpl_if layout.isNested><div style="margin-left: <tmpl_var depthX10>px;"></tmpl_if>
|
||||
<div class="postBorder<tmpl_if isCurrent>Current</tmpl_if>">
|
||||
<a name="id<tmpl_var assetId>"></a>
|
||||
<div class="postSubject">
|
||||
<tmpl_var title>
|
||||
</div>
|
||||
<div class="postData">
|
||||
<tmpl_if avatar.url>
|
||||
<div style="float: left; padding-right: 10px;">
|
||||
<img src="<tmpl_var avatar.url>" alt="<tmpl_var username>" />
|
||||
</div>
|
||||
</tmpl_if>
|
||||
<div style="float: left; padding-right: 25px;">
|
||||
<b><tmpl_var user.label>:</b>
|
||||
<tmpl_if user.isVisitor>
|
||||
<tmpl_var username>
|
||||
<tmpl_else>
|
||||
<a href="<tmpl_var userProfile.url>"><tmpl_var username></a>
|
||||
</tmpl_if>
|
||||
<br />
|
||||
<b><tmpl_var date.label>:</b> <tmpl_var dateSubmitted.human><br />
|
||||
</div>
|
||||
<div>
|
||||
<b><tmpl_var views.label>:</b> <tmpl_var views><br />
|
||||
<b><tmpl_var rating.label>:</b> <tmpl_var rating>
|
||||
<tmpl_unless hasRated>
|
||||
<tmpl_var rate.label> [ <p style="display:inline;vertical-align:middle;"><a href="<tmpl_var rate.url.thumbsUp>"><img src="<tmpl_var thumbsUp.icon.url>" alt="+" style="border: 0px;vertical-align:middle;" /></a></p> | <p style="display:inline;vertical-align:middle;"><a href="<tmpl_var rate.url.thumbsDown>"><img src="<tmpl_var thumbsDown.icon.url>" alt="-" style="border: 0px;vertical-align:middle;" /></a></p> ]
|
||||
</tmpl_unless>
|
||||
<br />
|
||||
<tmpl_if user.isPoster>
|
||||
<b><tmpl_var status.label>:</b> <tmpl_var status> [ <tmpl_if isArchived> <a href="<tmpl_var unarchive.url>"><tmpl_var unarchive.label></a> <tmpl_else> <a href="<tmpl_var archive.url>"><tmpl_var archive.label></a></tmpl_if> ]<br />
|
||||
</tmpl_if>
|
||||
</div>
|
||||
</div>
|
||||
<div class="postMessage">
|
||||
<tmpl_var content>
|
||||
<tmpl_loop attachment_loop>
|
||||
<div style="float: left; padding: 5px;">
|
||||
<a href="<tmpl_var url>">
|
||||
<tmpl_if isImage>
|
||||
<img src="<tmpl_var thumbnail>" style="border-style:none;" alt="<tmpl_var filename>" />
|
||||
<tmpl_else>
|
||||
<img src="<tmpl_var icon>" style="border-style:none;vertical-align:middle;" alt="<tmpl_var filename>" /></a> <a href="<tmpl_var url>"><tmpl_var filename>
|
||||
</tmpl_if>
|
||||
</a>
|
||||
</div>
|
||||
</tmpl_loop>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
</div>
|
||||
<tmpl_unless isLocked>
|
||||
<div class="postControls">
|
||||
<tmpl_if user.canReply>
|
||||
<a href="<tmpl_var reply.url>"><tmpl_var reply.label></a> •
|
||||
</tmpl_if>
|
||||
<tmpl_if user.canEdit>
|
||||
<a href="<tmpl_var edit.url>"><tmpl_var edit.label></a> •
|
||||
<a href="<tmpl_var delete.url>"><tmpl_var delete.label></a>
|
||||
</tmpl_if>
|
||||
</div>
|
||||
</tmpl_unless>
|
||||
</div>
|
||||
<tmpl_if layout.isNested></div></tmpl_if>
|
||||
</tmpl_loop>
|
||||
|
||||
<tmpl_if pagination.pageCount.isMultiple>
|
||||
<div class="pagination" style="margin-top: 20px;">
|
||||
[ <tmpl_var pagination.previousPage> | <tmpl_var pagination.pageList.upTo10> | <tmpl_var pagination.nextPage> ]
|
||||
</div>
|
||||
</tmpl_if>
|
||||
|
||||
<div style="margin-top: 20px;" class="bottomControls">
|
||||
<tmpl_if previous.url>
|
||||
<a href="<tmpl_var previous.url>"><tmpl_var previous.label></a> •
|
||||
</tmpl_if>
|
||||
<tmpl_if next.url>
|
||||
<a href="<tmpl_var next.url>"><tmpl_var next.label></a> •
|
||||
</tmpl_if>
|
||||
<tmpl_if user.canPost>
|
||||
<a href="<tmpl_var add.url>"><tmpl_var add.label></a> •
|
||||
</tmpl_if>
|
||||
<tmpl_if user.isModerator>
|
||||
<tmpl_if isSticky>
|
||||
<a href="<tmpl_var unstick.url>"><tmpl_var unstick.label></a> •
|
||||
<tmpl_else>
|
||||
<a href="<tmpl_var stick.url>"><tmpl_var stick.label></a> •
|
||||
</tmpl_if>
|
||||
<tmpl_if isLocked>
|
||||
<a href="<tmpl_var unlock.url>"><tmpl_var unlock.label></a> •
|
||||
<tmpl_else>
|
||||
<a href="<tmpl_var lock.url>"><tmpl_var lock.label></a> •
|
||||
</tmpl_if>
|
||||
</tmpl_if>
|
||||
<tmpl_unless user.isVisitor>
|
||||
<tmpl_if user.isSubscribed>
|
||||
<a href="<tmpl_var unsubscribe.url>"><tmpl_var unsubscribe.label></a>
|
||||
<tmpl_else>
|
||||
<a href="<tmpl_var subscribe.url>"><tmpl_var subscribe.label></a>
|
||||
</tmpl_if>
|
||||
</tmpl_unless>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue