Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4779 from matrix-org/travis/icons
Browse files Browse the repository at this point in the history
Use static locations for Riot icons
  • Loading branch information
turt2live authored Mar 6, 2019
2 parents 1f85c2c + 898378c commit 06cbf79
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions changelog.d/4779.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update URLs for riot.im icons and logos in the default notification templates.
6 changes: 3 additions & 3 deletions synapse/res/templates/notif.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<img alt="" class="sender_avatar" src="{{ message.sender_avatar_url|mxc_to_http(32,32) }}" />
{% else %}
{% if message.sender_hash % 3 == 0 %}
<img class="sender_avatar" src="https://vector.im/beta/img/76cfa6.png" />
<img class="sender_avatar" src="https://riot.im/img/external/avatar-1.png" />
{% elif message.sender_hash % 3 == 1 %}
<img class="sender_avatar" src="https://vector.im/beta/img/50e2c2.png" />
<img class="sender_avatar" src="https://riot.im/img/external/avatar-2.png" />
{% else %}
<img class="sender_avatar" src="https://vector.im/beta/img/f4c371.png" />
<img class="sender_avatar" src="https://riot.im/img/external/avatar-3.png" />
{% endif %}
{% endif %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion synapse/res/templates/notif_mail.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</td>
<td class="logo">
{% if app_name == "Riot" %}
<img src="http://matrix.org/img/riot-logo-email.png" width="83" height="83" alt="[Riot]"/>
<img src="http://riot.im/img/external/riot-logo-email.png" width="83" height="83" alt="[Riot]"/>
{% elif app_name == "Vector" %}
<img src="http://matrix.org/img/vector-logo-email.png" width="64" height="83" alt="[Vector]"/>
{% else %}
Expand Down
6 changes: 3 additions & 3 deletions synapse/res/templates/room.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<img alt="" src="{{ room.avatar_url|mxc_to_http(48,48) }}" />
{% else %}
{% if room.hash % 3 == 0 %}
<img alt="" src="https://vector.im/beta/img/76cfa6.png" />
<img alt="" src="https://riot.im/img/external/avatar-1.png" />
{% elif room.hash % 3 == 1 %}
<img alt="" src="https://vector.im/beta/img/50e2c2.png" />
<img alt="" src="https://riot.im/img/external/avatar-2.png" />
{% else %}
<img alt="" src="https://vector.im/beta/img/f4c371.png" />
<img alt="" src="https://riot.im/img/external/avatar-3.png" />
{% endif %}
{% endif %}
</td>
Expand Down

0 comments on commit 06cbf79

Please sign in to comment.