From 62189811df722d0063ee05cb6cfe87362499f25d Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sat, 8 Apr 2017 15:12:28 -0700 Subject: [PATCH] Channel topic --- titanembeds/static/css/embedstyle.css | 11 +++++++++-- titanembeds/static/js/embed.js | 1 + titanembeds/templates/embed.html.j2 | 6 ++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/titanembeds/static/css/embedstyle.css b/titanembeds/static/css/embedstyle.css index 9b3532b..4f172b5 100644 --- a/titanembeds/static/css/embedstyle.css +++ b/titanembeds/static/css/embedstyle.css @@ -8,7 +8,7 @@ min-height: calc(100vh - 80px); } footer { -position: fixed; +position: fixed; bottom: 0; left: 0; right: 0; @@ -133,4 +133,11 @@ background-color: #546e7a; font-variant: small-caps; font-size: 15px; color: #eceff1; -} \ No newline at end of file +} + +#channeltopic { + width: 80%; + margin-left: 30px; + margin-right: auto; + font-size: 85%; +} diff --git a/titanembeds/static/js/embed.js b/titanembeds/static/js/embed.js index 46037d3..b6be8e1 100644 --- a/titanembeds/static/js/embed.js +++ b/titanembeds/static/js/embed.js @@ -155,6 +155,7 @@ function fill_channels(channels) { $("#messagebox").prop('disabled', true); $("#messagebox").prop('placeholder', "Messages is disabled in this channel."); } + $("#channeltopic").text(chan.channel.topic); } } } diff --git a/titanembeds/templates/embed.html.j2 b/titanembeds/templates/embed.html.j2 index 3a6001f..9b8f4a4 100644 --- a/titanembeds/templates/embed.html.j2 +++ b/titanembeds/templates/embed.html.j2 @@ -37,12 +37,18 @@ {{ guild['name'] }} +
  • Actions
  • Open Server on Discordapp
  • +
  • Channel Topic
  • +
    + +
  • +
  • Channels