-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.html
47 lines (40 loc) · 1.67 KB
/
popup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!doctype html>
<link rel="stylesheet" type="text/css" href="css/base.css">
<link rel="stylesheet" type="text/css" href="css/popup.css">
<div id="popup">
<div id="avatar">
<img src="img/slackbot.png" alt="Slackbot">
</div>
<form id="post-form" action="POST" action="#" role="form">
<div class="form-field field-message">
<label class="form-label">Message</label>
<textarea name="message" id="message" class="form-input input-message" placeholder="Slackbot says..."></textarea>
<div class="callout"></div>
</div>
<div class="form-field form-field-channel">
<label class="form-label">Channel</label>
<input type="text" id="channel" name="channel" class="form-input form-input-prepended input-channel" placeholder="channel" />
<div class="form-prepend">#</div>
</div>
<div class="form-field form-field-submit">
<button type="submit" class="button button-primary">Send</button>
</div>
<div style="clear:both;"></div>
</form>
<ul class="favorite-channels"></ul>
</div>
<script id="favoriteChannelsTemplate" type="text/template">
<% if (channels.size() === 0) { %>
<li><a href="#" class="show-options">Setup your favorite channels</a></li>
<% } else { %>
<% channels.each(function(channel, i) { %>
<li><a href="#" class="select-channel" data-channel-name="<%= channel.get('name') %>">#<%= channel.get('name') %></a></li>
<% }) %>
<% } %>
</script>
<script src="js/analytics.js"></script>
<script src="js/vendor/jquery.js"></script>
<script src="js/vendor/underscore.js"></script>
<script src="js/vendor/backbone.js"></script>
<script src="js/models.js"></script>
<script src="js/popup.js"></script>