Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
d77f8d9f
Commit
d77f8d9f
authored
May 26, 2020
by
Ariel Fuggini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rearranged ifs to prevent unwanted spaces
parent
e8f1f6d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
src/templates/message.html
src/templates/message.html
+7
-9
No files found.
src/templates/message.html
View file @
d77f8d9f
...
...
@@ -7,15 +7,13 @@
{[ if (o.first_unread) { ]}
<div
class=
"message date-separator"
><hr
class=
"separator"
><span
class=
"separator-text"
>
{{{o.__('unread messages')}}}
</span></div>
{[ } ]}
<span
class=
"chat-msg__heading"
>
{[ if (o.is_me_message) { ]}
<time
timestamp=
"{{{o.isodate}}}"
class=
"chat-msg__time"
>
{{{o.pretty_time}}}
</time>
{[ } ]}
<span
class=
"chat-msg__author"
>
{[ if (o.is_me_message) { ]}**{[ }; ]}{{{o.username}}}
</span>
{[ if (!o.is_me_message) { ]}
{[o.hats.forEach(function (hat) { ]}
<span
class=
"badge badge-secondary"
>
{{{hat.title}}}
</span>
{[ }); ]}
<span
class=
"chat-msg__heading"
>
{[ if (o.is_me_message) { ]}
<time
timestamp=
"{{{o.isodate}}}"
class=
"chat-msg__time"
>
{{{o.pretty_time}}}
</time>
{[ } ]}
{[ if (o.is_encrypted) { ]}
<span
class=
"fa fa-lock"
></span>
{[ } ]}
</span>
{[ } ]}
<span
class=
"chat-msg__author"
>
{[ if (o.is_me_message) { ]}**{[ }; ]}{{{o.username}}}
</span>
{[ if (!o.is_me_message) { ]}{[o.hats.forEach(function (hat) { ]}
<span
class=
"badge badge-secondary"
>
{{{hat.title}}}
</span>
{[ }); ]}
<time
timestamp=
"{{{o.isodate}}}"
class=
"chat-msg__time"
>
{{{o.pretty_time}}}
</time>
{[ } ]}{[ if (o.is_encrypted) { ]}
<span
class=
"fa fa-lock"
></span>
{[ } ]}
</span>
<div
class=
"chat-msg__body chat-msg__body--{{{o.type}}} {{{o.received ? 'chat-msg__body--received' : '' }}} {{{o.is_delayed ? 'chat-msg__body--delayed' : '' }}}"
>
<div
class=
"chat-msg__message"
>
{[ if (o.is_retracted) { ]}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment