attempt at reparsing but propbably won't keep

This commit is contained in:
Morgan McMillian 2017-02-04 19:54:02 -08:00
parent d42eb8f1ad
commit 4f89244065
2 changed files with 26 additions and 16 deletions

View file

@ -136,10 +136,25 @@ Container {
topMargin: ui.sdu(2.0) topMargin: ui.sdu(2.0)
bottomMargin: ui.sdu(2.0) bottomMargin: ui.sdu(2.0)
Label { Label {
text: (ListItemData.is_deleted) ? qsTr("<i>{{POST DELETED}}</i>") : ListItemData.content.text //text: (ListItemData.is_deleted) ? qsTr("<i>{{POST DELETED}}</i>") : (ListItemData.content.html).replace(/<br>/g,"<br/>")
text: {
var text
if (ListItemData.is_deleted) {
text = "<i>{{POST DELETED}}</i>"
} else {
text = (ListItemData.content.html).replace(/<br>/g,"<br/>")
text = text = text.replace(/&[^amp;]/g,"&amp;");
}
return text
}
multiline: true multiline: true
//textFormat: TextFormat.Html textFormat: TextFormat.Html
} }
// Label {
// text: ListItemData.content.html
// multiline: true
// textFormat: TextFormat.Plain
// }
} }
Container { Container {
layout: DockLayout {} layout: DockLayout {}

View file

@ -30,52 +30,47 @@
<context> <context>
<name>PostItem</name> <name>PostItem</name>
<message> <message>
<location filename="../assets/PostItem.qml" line="139"/> <location filename="../assets/PostItem.qml" line="184"/>
<source>&lt;i&gt;{{POST DELETED}}&lt;/i&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="169"/>
<source>Reply</source> <source>Reply</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../assets/PostItem.qml" line="178"/> <location filename="../assets/PostItem.qml" line="193"/>
<source>Reply All</source> <source>Reply All</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../assets/PostItem.qml" line="188"/> <location filename="../assets/PostItem.qml" line="203"/>
<source>Add Bookmark</source> <source>Add Bookmark</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../assets/PostItem.qml" line="188"/> <location filename="../assets/PostItem.qml" line="203"/>
<source>Delete Bookmark</source> <source>Delete Bookmark</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../assets/PostItem.qml" line="199"/> <location filename="../assets/PostItem.qml" line="214"/>
<source>Repost</source> <source>Repost</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../assets/PostItem.qml" line="199"/> <location filename="../assets/PostItem.qml" line="214"/>
<source>Delete Repost</source> <source>Delete Repost</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../assets/PostItem.qml" line="210"/> <location filename="../assets/PostItem.qml" line="225"/>
<source>Quote</source> <source>Quote</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../assets/PostItem.qml" line="219"/> <location filename="../assets/PostItem.qml" line="234"/>
<source>View Profile</source> <source>View Profile</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../assets/PostItem.qml" line="237"/> <location filename="../assets/PostItem.qml" line="252"/>
<source>Delete</source> <source>Delete</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>