Channel topic

This commit is contained in:
Jeremy Zhang 2017-04-08 15:12:28 -07:00
parent 0509b44078
commit 62189811df
3 changed files with 16 additions and 2 deletions

View File

@ -134,3 +134,10 @@ background-color: #546e7a;
font-size: 15px;
color: #eceff1;
}
#channeltopic {
width: 80%;
margin-left: 30px;
margin-right: auto;
font-size: 85%;
}

View File

@ -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);
}
}
}

View File

@ -37,12 +37,18 @@
<span class="name">{{ guild['name'] }}</span>
</div>
</li>
<li><a class="subheader">Actions</a></li>
<li><a href="{{ url_for("user.administrate_guild", guild_id=guild['id']) }}" class="waves-effect" target="_blank" id="administrate_link" style="display: none;">Manage Guild Embed</a></li>
<li><a href="https://discordapp.com/channels/{{ guild['id'] }}/" class="waves-effect" target="_blank">Open Server on Discordapp</a></li>
<li><div class="divider"></div></li>
<li><a class="subheader">Channel Topic</a></li>
<div id="channeltopic"></div>
<li><div class="divider"></div></li>
<li><a class="subheader">Channels</a></li>
<span id="channels-list"></span>
</ul>