mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
CSS - break-all in comments and output error when commenting
This commit is contained in:
parent
3c9c242f60
commit
2a0158e5f2
4 changed files with 14 additions and 5 deletions
|
@ -415,7 +415,7 @@ class Comment(base):
|
|||
db_session.add(comment)
|
||||
db_session.commit()
|
||||
db_session.flush()
|
||||
except:
|
||||
except Exception as ex:
|
||||
db_session.rollback()
|
||||
raise Exception("could not add comment")
|
||||
raise Exception(str(ex))
|
||||
return comment
|
||||
|
|
|
@ -424,4 +424,8 @@ span.username a.author{
|
|||
ul.b {
|
||||
list-style-type: square;
|
||||
padding-left: 1.0rem;
|
||||
}
|
||||
|
||||
.media-body #comment{
|
||||
word-break: break-all;
|
||||
}
|
|
@ -16,7 +16,9 @@
|
|||
<div class="media-body">
|
||||
<span class="username"><a href="/user/{{ c.user.username }}">{{c.user.username}}</a></span>
|
||||
<span class="date_posted">{{c.date_added.strftime('%Y-%m-%d %H:%M')}}</span><br>
|
||||
<span style="word-break: break-all">
|
||||
{{c.message}}
|
||||
</span>
|
||||
<br><br>
|
||||
{% if logged_in %}
|
||||
<form method="post" action="{{url_for('proposal_comment')}}">
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
{{c.date_added.strftime('%Y-%m-%d %H:%M')}}
|
||||
</a>
|
||||
</span><br>
|
||||
<span style="{% if c.automated %}color:blue;{% endif %}">{{c.message}}</span>
|
||||
<span style="{% if c.automated %}color:blue;{% endif %};word-break: break-all;">{{c.message}}</span>
|
||||
<br>
|
||||
{% if not c.automated %}
|
||||
<a class="reply" href="{{url_for('propsal_comment_reply', cid=c.id, pid=proposal.id)}}">reply</a>
|
||||
|
@ -46,7 +46,7 @@
|
|||
{% for _c in c.comments %}
|
||||
<div class="media mt-4 comment-container" id="comment-{{_c.id}}">
|
||||
<div class="votearrow" title="upvote"></div>
|
||||
<div class="media-body">
|
||||
<div class="media-body" id="comment">
|
||||
<span class="username">
|
||||
<a href="/user/{{ _c.user.username }}">
|
||||
{{_c.user.username}}
|
||||
|
@ -63,8 +63,11 @@
|
|||
<a href="/proposal/{{proposal.id}}#comment-{{_c.id}}">
|
||||
{{_c.date_added.strftime('%Y-%m-%d %H:%M')}}
|
||||
</a>
|
||||
</span><br>
|
||||
</span>
|
||||
<br>
|
||||
<span style="word-break: break-all;">
|
||||
{{_c.message}}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue