Skip to content

Commit

Permalink
DEV: Use angle bracket syntax (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
janzenisaac committed May 26, 2023
1 parent a221a28 commit 9a863e6
Show file tree
Hide file tree
Showing 5 changed files with 2,056 additions and 597 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="alert alert-error">
{{i18n "antivirus.clamav_unavailable"}}
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<h2>{{i18n "antivirus.version_title"}}</h2>

<table>
Expand All @@ -20,7 +19,7 @@
</tbody>
</table>

<br>
<br />

<h2>{{i18n "antivirus.stats_title"}}</h2>

Expand All @@ -41,4 +40,4 @@
<td>{{background_scan_stats.found}}</td>
</tr>
</tbody>
</table>
</table>
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{{#if reviewable.topic}}
<div class="flagged-post-header">
{{reviewable-topic-link reviewable=reviewable tagName=""}}
<ReviewableTopicLink @reviewable={{reviewable}} @tagName="" />
</div>
{{/if}}

<div class="reviewable-upload">
<div class="reviewable-upload-contents">
<div class="post-contents-wrapper">
{{#if reviewable.target_created_by}}
{{reviewable-created-by user=reviewable.target_created_by tagName=""}}
<ReviewableCreatedBy
@user={{reviewable.target_created_by}}
@tagName=""
/>
{{/if}}

<div class="post-contents">
Expand All @@ -18,24 +21,24 @@
</div>
</div>

{{reviewable-field
classes="reviewable-upload-details scan-result"
name=(i18n "review.file.scan_result")
value=reviewable.payload.scan_message
}}
<ReviewableField
@classes="reviewable-upload-details scan-result"
@name={{i18n "review.file.scan_result"}}
@value={{reviewable.payload.scan_message}}
/>

{{reviewable-field
classes="reviewable-upload-details filename"
name=(i18n "review.file.filename")
value=reviewable.payload.original_filename
}}
<ReviewableField
@classes="reviewable-upload-details filename"
@name={{i18n "review.file.filename"}}
@value={{reviewable.payload.original_filename}}
/>

{{reviewable-field
classes="reviewable-upload-details uploaded-by"
name=(i18n "review.file.uploaded_by")
value=reviewable.payload.uploaded_by
}}
<ReviewableField
@classes="reviewable-upload-details uploaded-by"
@name={{i18n "review.file.uploaded_by"}}
@value={{reviewable.payload.uploaded_by}}
/>
</div>

{{yield}}
</div>
</div>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"author": "Discourse",
"license": "MIT",
"devDependencies": {
"eslint-config-discourse": "^1.1.3"
"eslint-config-discourse": "^3.4.0"
}
}
Loading

0 comments on commit 9a863e6

Please sign in to comment.