Skip to content

Commit

Permalink
Moved 'create a new discussion' button from right alignment to left a…
Browse files Browse the repository at this point in the history
…lignment in community forum discussion board viewer.
  • Loading branch information
mikemintz committed Feb 4, 2012
1 parent a5f8908 commit a6b74c5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -32,7 +32,7 @@ def render(self, context):
result.append(u'<div class="comment_box">')
result.append(u'<div class="comment_box_header">')
if agentcan_helper(context, 'comment_on', item):
result.append(u'<div style="float: left; font-weight: bold; font-size: larger;">Ongoing discussions</div><div style="float: right;"><a href="#" onclick="openCommentDialog(\'comment%s\'); return false;" class="fg-button ui-state-default fg-button-icon-left ui-corner-all"><span class="ui-icon ui-icon-comment"></span>Create a new discussion</a></div><div style="clear: both;"></div>' % item.pk)
result.append(u'<div style="font-weight: bold; font-size: larger;">Ongoing discussions</div><div><a href="#" onclick="openCommentDialog(\'comment%s\'); return false;" class="fg-button ui-state-default fg-button-icon-left ui-corner-all"><span class="ui-icon ui-icon-comment"></span>Create a new discussion</a></div>' % item.pk)
result.append(u'<div id="comment%s" style="display: none;"><form method="post" action="%s?redirect=%s">'% (item.pk, reverse('item_type_url', kwargs={'viewer': 'textcomment', 'action': 'accordioncreate'}), urlquote(full_path)))
result.append(u'<p>Discussion subject: <input name="title" type="text" size="35" maxlength="255" /></p><p>Body: <br><textarea name="comment_body" style="height: 200px; width: 250px;"></textarea> ')
if context['cur_agent'].is_anonymous():
Expand Down

0 comments on commit a6b74c5

Please sign in to comment.