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

@ -8,7 +8,7 @@ min-height: calc(100vh - 80px);
} }
footer { footer {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0; right: 0;
@ -133,4 +133,11 @@ background-color: #546e7a;
font-variant: small-caps; font-variant: small-caps;
font-size: 15px; font-size: 15px;
color: #eceff1; 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('disabled', true);
$("#messagebox").prop('placeholder', "Messages is disabled in this channel."); $("#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> <span class="name">{{ guild['name'] }}</span>
</div> </div>
</li> </li>
<li><a class="subheader">Actions</a></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="{{ 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><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><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> <li><a class="subheader">Channels</a></li>
<span id="channels-list"></span> <span id="channels-list"></span>
</ul> </ul>