- Added a better confirmation message when deleting content.

- Added a "commit" option as well as a listing of version tags per the rough
   edges discussions on IRC.
 - Added a "close" or "archive" option to replies.
This commit is contained in:
JT Smith 2006-06-10 20:49:11 +00:00
parent 58566a6ed6
commit 9aa86225be
9 changed files with 413 additions and 371 deletions

View file

@ -22,6 +22,10 @@
- fix: EMS Discount Pass Not Applied
- fix: Commerce checkout confirmation very confusing
- fix: HttpProxy turns ampersands into semicolons
- Added a better confirmation message when deleting content.
- Added a "commit" option as well as a listing of version tags per the rough
edges discussions on IRC.
- Added a "close" or "archive" option to replies.
6.99.3

View file

@ -1,386 +1,386 @@
#PBtmpl0000000000000209
<a name="id<tmpl_var assetId>" id="id<tmpl_var assetId>"></a>
<tmpl_if session.var.adminOn>
<p><tmpl_var controls></p>
</tmpl_if>
<h2><tmpl_var title></h2>
<div class="defaultSubmissionDetails">
<tmpl_if avatar.url>
<div style="width: 100%; text-align: center;">
<img src="<tmpl_var avatar.url>" alt="<tmpl_var username>" />
</div>
</tmpl_if>
<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 />
<b><tmpl_var severity.label>:</b> <tmpl_var userDefined1><br />
<b><tmpl_var views.label>:</b> <tmpl_var views><br />
<b><tmpl_var rating.label>:</b> <tmpl_var rating>
<tmpl_unless hasRated>
&nbsp; &nbsp;<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.isModerator>
<b><tmpl_var status.label>:</b> <tmpl_if isArchived><tmpl_var closed.label> &nbsp; &nbsp; [ <a href="<tmpl_var unarchive.url>"><tmpl_var open.label></a> <tmpl_else> <tmpl_var open.label> &nbsp; &nbsp; [ <a href="<tmpl_var archive.url>"><tmpl_var close.label></a></tmpl_if> ]<br />
<tmpl_else>
<tmpl_if user.isPoster>
<b><tmpl_var status.label>:</b> <tmpl_if isArchived><tmpl_var closed.label> <tmpl_else> <tmpl_var open.label></tmpl_if><br />
</tmpl_if>
</tmpl_if>
<tmpl_if karmaIsEnabled>
<b><tmpl_var karmaRank.label>:</b> <tmpl_var karmaRank><br />
<b><tmpl_var transferkarma.label>:</b>
<tmpl_var transfer.karma.form>
</tmpl_if>
</div>
<div class="collaborationThreadContent">
<tmpl_var content>
</div>
<tmpl_if attachment_loop>
<br />
<tmpl_loop attachment_loop>
<div style="float: left; padding: 5px;">
<a name="id<tmpl_var assetId>" id="id<tmpl_var assetId>"></a>
<tmpl_if session.var.adminOn>
<p><tmpl_var controls></p>
</tmpl_if>
<h2><tmpl_var title></h2>
<div class="defaultSubmissionDetails">
<tmpl_if avatar.url>
<div style="width: 100%; text-align: center;">
<img src="<tmpl_var avatar.url>" alt="<tmpl_var username>" />
</div>
</tmpl_if>
<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 />
<b><tmpl_var severity.label>:</b> <tmpl_var userDefined1><br />
<b><tmpl_var views.label>:</b> <tmpl_var views><br />
<b><tmpl_var rating.label>:</b> <tmpl_var rating>
<tmpl_unless hasRated>
&nbsp; &nbsp;<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.isModerator>
<b><tmpl_var status.label>:</b> <tmpl_if isArchived><tmpl_var closed.label> &nbsp; &nbsp; [ <a href="<tmpl_var unarchive.url>"><tmpl_var open.label></a> <tmpl_else> <tmpl_var open.label> &nbsp; &nbsp; [ <a href="<tmpl_var archive.url>"><tmpl_var close.label></a></tmpl_if> ]<br />
<tmpl_else>
<tmpl_if user.isPoster>
<b><tmpl_var status.label>:</b> <tmpl_if isArchived><tmpl_var closed.label> <tmpl_else> <tmpl_var open.label></tmpl_if><br />
</tmpl_if>
</tmpl_if>
<tmpl_if karmaIsEnabled>
<b><tmpl_var karmaRank.label>:</b> <tmpl_var karmaRank><br />
<b><tmpl_var transferkarma.label>:</b>
<tmpl_var transfer.karma.form>
</tmpl_if>
</div>
<div class="collaborationThreadContent">
<tmpl_var content>
</div>
<tmpl_if attachment_loop>
<br />
<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>
<br />
</tmpl_if>
<tmpl_unless isLocked>
<div class="postControls">
<tmpl_if user.canReply>
<a href="<tmpl_var reply.url>"><tmpl_var reply.label></a>
&bull;
</tmpl_if>
<tmpl_if user.canEdit>
<a href="<tmpl_var edit.url>"><tmpl_var edit.label></a>
&bull;
<a href="<tmpl_var delete.url>"><tmpl_var delete.label></a>
</tmpl_if>
</div>
</tmpl_unless>
<div style="clear:both;"></div>
<tmpl_if repliesAllowed>
<div style="float: left; width: 70%">
<h2><tmpl_var replies.label></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_if layout.isFlat>
<!-- begin flat layout -->
<tmpl_loop post_loop>
<tmpl_unless isThreadRoot>
<div class="postBorder<tmpl_if isCurrent>Current</tmpl_if>">
<a name="<tmpl_var assetId>"></a>
<div class="postSubject">
<tmpl_var title>
</div>
<div class="postData">
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<tmpl_if avatar.url>
<td style="padding-right: 10px;">
<img src="<tmpl_var avatar.url>" alt="<tmpl_var username>" />
</td>
</tmpl_if>
<td style="padding-right: 25px;text-align:left;">
<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>
</td>
<td style="text-align:left;">
<b><tmpl_var rating.label>:</b> <tmpl_var rating>
<tmpl_unless hasRated>
&nbsp; &nbsp;<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 />
</td>
</tr>
</table>
</div>
<div class="postMessage">
<tmpl_var content>
<tmpl_loop attachment_loop>
<div style="float: left; padding: 5px;">
</a>
</div>
</tmpl_loop>
<div style="clear: both;"></div>
<br />
</tmpl_if>
<tmpl_unless isLocked>
<div class="postControls">
<tmpl_if user.canReply>
<a href="<tmpl_var reply.url>"><tmpl_var reply.label></a>
&bull;
</tmpl_if>
<tmpl_if user.canEdit>
<a href="<tmpl_var edit.url>"><tmpl_var edit.label></a>
&bull;
<a href="<tmpl_var delete.url>"><tmpl_var delete.label></a>
</tmpl_if>
</div>
</tmpl_unless>
<div style="clear:both;"></div>
<tmpl_if repliesAllowed>
<div style="float: left; width: 70%">
<h2><tmpl_var replies.label></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_if layout.isFlat>
<!-- begin flat layout -->
<tmpl_loop post_loop>
<tmpl_unless isThreadRoot>
<div class="postBorder<tmpl_if isCurrent>Current</tmpl_if>">
<a name="<tmpl_var assetId>"></a>
<div class="postSubject">
<tmpl_var title>
</div>
<div class="postData">
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<tmpl_if avatar.url>
<td style="padding-right: 10px;">
<img src="<tmpl_var avatar.url>" alt="<tmpl_var username>" />
</td>
</tmpl_if>
<td style="padding-right: 25px;text-align:left;">
<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>
</td>
<td style="text-align:left;">
<b><tmpl_var rating.label>:</b> <tmpl_var rating>
<tmpl_unless hasRated>
&nbsp; &nbsp;<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 />
</td>
</tr>
</table>
</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>
&bull;
</tmpl_if>
<tmpl_if user.canEdit>
<a href="<tmpl_var edit.url>"><tmpl_var edit.label></a>
&bull;
<a href="<tmpl_var delete.url>"><tmpl_var delete.label></a>
</tmpl_if>
</div>
</tmpl_unless>
</div>
</tmpl_unless>
</tmpl_loop>
<!-- end flat layout -->
</tmpl_if>
<tmpl_if layout.isNested>
<!-- begin nested layout -->
<tmpl_loop post_loop>
<tmpl_unless isThreadRoot>
<div style="margin-left: <tmpl_var depthX10>px;">
<div class="postBorder<tmpl_if isCurrent>Current</tmpl_if>">
<a name="<tmpl_var assetId>"></a>
<div class="postSubject">
<tmpl_var title>
</div>
<div class="postData">
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<tmpl_if avatar.url>
<td style="padding-right: 10px;">
<img src="<tmpl_var avatar.url>" alt="<tmpl_var username>" />
</td>
</tmpl_if>
<td style="padding-right: 25px;text-align:left;">
<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>
</td>
<td style="text-align:left;">
<b><tmpl_var rating.label>:</b> <tmpl_var rating>
<tmpl_unless hasRated>
&nbsp; &nbsp;<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 />
</td>
</tr>
</table>
</div>
<div class="postMessage">
<tmpl_var content>
<tmpl_loop attachment_loop>
<div style="float: left; padding: 5px;">
</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>
&bull;
</tmpl_if>
<tmpl_if user.canEdit>
<a href="<tmpl_var edit.url>"><tmpl_var edit.label></a>
&bull;
<a href="<tmpl_var delete.url>"><tmpl_var delete.label></a>
</tmpl_if>
</div>
</tmpl_unless>
</div>
</tmpl_unless>
</tmpl_loop>
<!-- end flat layout -->
</tmpl_if>
<tmpl_if layout.isNested>
<!-- begin nested layout -->
<tmpl_loop post_loop>
<tmpl_unless isThreadRoot>
<div style="margin-left: <tmpl_var depthX10>px;">
<div class="postBorder<tmpl_if isCurrent>Current</tmpl_if>">
<a name="<tmpl_var assetId>"></a>
<div class="postSubject">
<tmpl_var title>
</div>
<div class="postData">
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<tmpl_if avatar.url>
<td style="padding-right: 10px;">
<img src="<tmpl_var avatar.url>" alt="<tmpl_var username>" />
</td>
</tmpl_if>
<td style="padding-right: 25px;text-align:left;">
<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>
</td>
<td style="text-align:left;">
<b><tmpl_var rating.label>:</b> <tmpl_var rating>
<tmpl_unless hasRated>
&nbsp; &nbsp;<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 />
</td>
</tr>
</table>
</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>
&bull;
</tmpl_if>
<tmpl_if user.canEdit>
<a href="<tmpl_var edit.url>"><tmpl_var edit.label></a>
&bull;
<a href="<tmpl_var delete.url>"><tmpl_var delete.label></a>
</tmpl_if>
</div>
</tmpl_unless>
</div>
</div>
</tmpl_unless>
</tmpl_loop>
<!-- end nested layout -->
</tmpl_if>
<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>
</tmpl_if>
<div class="postControls">
<tmpl_if previous.url>
<a href="<tmpl_var previous.url>"><tmpl_var previous.label></a>
&bull;
</tmpl_if>
<a href="<tmpl_var collaboration.url>"><tmpl_var back.label></a>
<tmpl_if next.url>
&bull;
<a href="<tmpl_var next.url>"><tmpl_var next.label></a>
</tmpl_if>
<tmpl_if user.canPost>
&bull;
<a href="<tmpl_var add.url>"><tmpl_var add.label></a>
&bull;
</tmpl_if>
<tmpl_if user.isModerator>
<tmpl_if isSticky>
<a href="<tmpl_var unstick.url>"><tmpl_var unstick.label></a>
&bull;
<tmpl_else>
<a href="<tmpl_var stick.url>"><tmpl_var stick.label></a>
&bull;
</tmpl_if>
<tmpl_if isLocked>
<a href="<tmpl_var unlock.url>"><tmpl_var unlock.label></a>
&bull;
<tmpl_else>
<a href="<tmpl_var lock.url>"><tmpl_var lock.label></a>
&bull;
</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>
</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>
&bull;
</tmpl_if>
<tmpl_if user.canEdit>
<a href="<tmpl_var edit.url>"><tmpl_var edit.label></a>
&bull;
<a href="<tmpl_var delete.url>"><tmpl_var delete.label></a>
</tmpl_if>
</div>
</tmpl_unless>
</div>
</div>
</tmpl_unless>
</tmpl_loop>
<!-- end nested layout -->
</tmpl_if>
<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>
</tmpl_if>
<div class="postControls">
<tmpl_if previous.url>
<a href="<tmpl_var previous.url>"><tmpl_var previous.label></a>
&bull;
</tmpl_if>
<a href="<tmpl_var collaboration.url>"><tmpl_var back.label></a>
<tmpl_if next.url>
&bull;
<a href="<tmpl_var next.url>"><tmpl_var next.label></a>
</tmpl_if>
<tmpl_if user.canPost>
&bull;
<a href="<tmpl_var add.url>"><tmpl_var add.label></a>
&bull;
</tmpl_if>
<tmpl_if user.isModerator>
<tmpl_if isSticky>
<a href="<tmpl_var unstick.url>"><tmpl_var unstick.label></a>
&bull;
<tmpl_else>
<a href="<tmpl_var stick.url>"><tmpl_var stick.label></a>
&bull;
</tmpl_if>
<tmpl_if isLocked>
<a href="<tmpl_var unlock.url>"><tmpl_var unlock.label></a>
&bull;
<tmpl_else>
<a href="<tmpl_var lock.url>"><tmpl_var lock.label></a>
&bull;
</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>
~~~
<style type="text/css">
.defaultSubmissionDetails
{
float: right;
padding: 2px;
margin: 2px;
font-size:9pt;
font-family:arial;
margin-bottom:20px;
}
.defaultSubmissionDetails a
{
color:#29587E;
}
.postBorder {
border: 1px solid #cccccc;
margin-bottom: 10px;
}
.postBorderCurrent {
border: 3px dotted black;
margin-bottom: 10px;
}
.postSubject {
border-bottom: 1px solid #cccccc;
font-weight: bold;
padding: 3px;
font-family:arial;
}
.postData {
border-bottom: 1px solid #cccccc;
background-color: #eeeeee;
padding: 3px;
}
.postData td {
font-size: 9pt;
color: black;
font-family:arial;
}
.postControls {
border-top: 1px solid #cccccc;
background-color: #eeeeee;
color: black;
padding: 3px;
font-family:arial;
clear:both;
width:100%;
display:block;
-moz-box-sizing:border-box;
}
.postMessage {
padding: 3px;
}
.currentThread {
background-color: #eeeeee;
}
.threadHead {
font-weight: bold;
border-bottom: 1px solid #cccccc;
font-size: 9pt;
background-color: #eeeeee;
color: black;
padding: 3px;
font-family:arial;
}
.threadData {
font-size: 11px;
padding: 3px;
font-family:arial;
}
.postControls
{
background:#676767;
display:block;
text-align:right;
padding:3px;
font-size:9pt;
font-family:arial;
margin-top: 1px;
}
.postControls a:link, .postControls a:visited
{
color:white;
text-decoration:underline;
}
.postControls a:hover {
text-decoration:none;
}
.collaborationThreadContent
{
font-family:arial;
font-size:9pt;
}
</style>
<style type="text/css">
.defaultSubmissionDetails
{
float: right;
padding: 2px;
margin: 2px;
font-size:9pt;
font-family:arial;
margin-bottom:20px;
}
.defaultSubmissionDetails a
{
color:#29587E;
}
.postBorder {
border: 1px solid #cccccc;
margin-bottom: 10px;
}
.postBorderCurrent {
border: 3px dotted black;
margin-bottom: 10px;
}
.postSubject {
border-bottom: 1px solid #cccccc;
font-weight: bold;
padding: 3px;
font-family:arial;
}
.postData {
border-bottom: 1px solid #cccccc;
background-color: #eeeeee;
padding: 3px;
}
.postData td {
font-size: 9pt;
color: black;
font-family:arial;
}
.postControls {
border-top: 1px solid #cccccc;
background-color: #eeeeee;
color: black;
padding: 3px;
font-family:arial;
clear:both;
width:100%;
display:block;
-moz-box-sizing:border-box;
}
.postMessage {
padding: 3px;
}
.currentThread {
background-color: #eeeeee;
}
.threadHead {
font-weight: bold;
border-bottom: 1px solid #cccccc;
font-size: 9pt;
background-color: #eeeeee;
color: black;
padding: 3px;
font-family:arial;
}
.threadData {
font-size: 11px;
padding: 3px;
font-family:arial;
}
.postControls
{
background:#676767;
display:block;
text-align:right;
padding:3px;
font-size:9pt;
font-family:arial;
margin-top: 1px;
}
.postControls a:link, .postControls a:visited
{
color:white;
text-decoration:underline;
}
.postControls a:hover {
text-decoration:none;
}
.collaborationThreadContent
{
font-family:arial;
font-size:9pt;
}
</style>

View file

@ -450,6 +450,28 @@ sub render {
$var{"console.canUse"} = $acParams->{canUse};
$var{"console.icon"} = $acParams->{icon};
$var{"help.url"} = $self->{_helpUrl};
my $working = WebGUI::VersionTag->getWorking($self->session, 1);
my $workingId = "";
my @tags = ();
if ($working) {
$workingId = $working->getId;
push(@tags, {
url=>$self->session->url->page("op=commitVersionTag;tagId=".$workingId),
title=>$i18n->get("commit my changes","Macro_AdminBar"),
icon=>$self->session->url->extras('adminConsole/small/versionTags.gif')
});
}
my $rs = $self->session->db->read("select tagId, name, groupToUse from assetVersionTag where isCommitted=0 and isLocked=0 order by name");
while (my ($id, $name, $group) = $rs->array) {
next unless $self->session->user->isInGroup($group);
push(@tags, {
url=>$self->session->url->page("op=setWorkingVersionTag;tagId=".$id),
title=>($id eq $workingId) ? '* '.$name : $name,
});
}
if (scalar(@tags)) {
$var{versionTags} = \@tags;
}
if (defined $self->session->asset) {
my $importNode = WebGUI::Asset->getImportNode($self->session);
my $importNodeLineage = $importNode->get("lineage");

View file

@ -140,7 +140,6 @@ sub chopTitle {
sub commit {
my $self = shift;
$self->SUPER::commit;
$self->getThread->unarchive if ($self->getThread->get("status") eq "archived");
$self->notifySubscribers;
if ($self->isNew) {
if ($self->session->setting->get("useKarma") && $self->getThread->getParent->get("karmaPerPost")) {
@ -673,6 +672,11 @@ sub processPropertiesFromFormPost {
$self->getThread->stick if ($self->session->form->process("stick"));
}
}
if ($self->session->form->process("archive") && $self->getThread->getParent->canModerate) {
$self->getThread->archive;
} elsif ($self->getThread->get("status") eq "archived") {
$self->getThread->unarchive;
}
$self->getThread->subscribe if ($self->session->form->process("subscribe"));
delete $self->{_storageLocation};
my $storage = $self->getStorageLocation;
@ -1002,6 +1006,9 @@ sub www_edit {
$content = $self->getValue("content");
$title = $self->getValue("title");
}
$var{'archive.form'} = WebGUI::Form::yesNo($self->session, {
name=>"archive"
});
$var{'form.header'} .= WebGUI::Form::hidden($self->session, {name=>"proceed", value=>"showConfirmation"});
if ($self->session->form->process("title") || $self->session->form->process("content") || $self->session->form->process("synopsis")) {
$var{'preview.title'} = WebGUI::HTML::filter($self->session->form->process("title"),"all");

View file

@ -35,6 +35,9 @@ our $HELP = {
{
'name' => 'isNewThread'
},
{
'name' => 'archive.form'
},
{
'name' => 'sticky.form'
},

View file

@ -122,6 +122,7 @@ sub addPost {
}
}
$post->postProcess;
$post->getThread->unarchive if ($post->getThread->get("status") eq "archived");
$post->requestCommit;
return $post;
}

View file

@ -769,8 +769,8 @@ each asset under the tab &quot;Meta&quot; in the asset properties.</p>
message => q|Hide from navigation?|
},
'43' => {
lastUpdated => 1031514049,
message => q|Are you certain that you wish to delete this content?|
lastUpdated => 1149960436,
message => q|Are you certain that you wish to delete this content? Note that this change is not versioned and will take place immediately.|
},
'940' => {
lastUpdated => 1050438829,

View file

@ -52,6 +52,11 @@ editing an existing Post.|,
lastUpdated => 1149829706,
},
'archive.form' => {
message => q|A yes/no button to archive the thread when you submit this reply. This is only available to moderators.|,
lastUpdated => 1149829706,
},
'sticky.form' => {
message => q|A yes/no button to set the thread to be sticky, so that it stays at the top of the forum listing.|,
lastUpdated => 1149829706,

View file

@ -77,7 +77,7 @@ th {
font-size: 12px;
}
.adminConsoleMainMenu:hover, .adminConsoleUtilityMenu:hover {
.adminConsoleMainMenu:hover, .adminConsoleUtilityMenu:hover, .adminConsoleVersionTags:hover {
opacity: 1.0;
z-index: 10;
background-color: #fafafa;
@ -108,7 +108,7 @@ th {
background-color: #fafafa;
}
.adminConsoleUtilityMenu {
.adminConsoleUtilityMenu, .adminConsoleVersionTags {
z-index: 1;
opacity: 0.6;
border-top: 1px solid #D7D7D7;