anope- supernets anope source code & configuration |
git clone git://git.acid.vegas/anope.git |
Log | Files | Refs | Archive | README |
memos.html (3444B)
1 {INCLUDE header.html} 2 <div class="panel-heading">Memos List</div> 3 <div class="panel-body"> 4 {FOR M IN MESSAGES} 5 <div class="alert alert-info"> 6 {M}<br> 7 </div> 8 {END FOR} 9 10 {IF EXISTS NUMBER} 11 <script> 12 $("#tableInfoMemos").ready(function() \{ 13 $(".reply").click(function(e) \{ 14 e.preventDefault(); 15 var recv = $(this).attr('href'); 16 $("#receiver").val(recv); 17 $("#message").focus(); 18 \}); 19 \}); 20 </script> 21 22 <script> 23 $(function () \{ 24 $('.table tbody tr td abbr').popover(); 25 \}); 26 </script> 27 28 <table id="tableInfoMemos" class="table table-hover"> 29 <thead> 30 <th>Number</th> 31 <th>Sender</th> 32 <th>Message <small>(hover: Time)</small></th> 33 <th></th> 34 </thead> 35 <tbody> 36 {FOR I,S,T,TXT,U IN NUMBER,SENDER,TIME,TEXT,UNREAD} 37 {IF EQ U YES} 38 <tr class="read"> 39 {ELSE} 40 <tr class="unread"> 41 {END IF} 42 <td>{I}</td> 43 <td>{S}</td> 44 <td><abbr data-container="body" data-trigger="hover" data-placement="top" data-content="{T}">{TXT}</abbr></td> 45 <td style="text-align: right;" nowrap="nowrap"> 46 {IF EQ U YES} 47 <a class="label label-success reply" href="{S}" id="memo{I}">Reply</a> 48 <a class="label label-warning" href="/memoserv/memos?channel={ESCAPED_CHANNEL_NAME}&number={I}&read=1">Mark as Read</a> 49 <a class="label label-danger" href="/memoserv/memos?channel={ESCAPED_CHANNEL_NAME}&number={I}&del=1">Delete</a> 50 {ELSE} 51 <a class="label label-success reply" href="{S}" id="memo{I}">Reply</a> 52 <a class="label label-warning" href="/memoserv/memos?channel={ESCAPED_CHANNEL_NAME}&number={I}&read=2">Mark as Unread</a> 53 <a class="label label-danger" href="/memoserv/memos?channel={ESCAPED_CHANNEL_NAME}&number={I}&del=1">Delete</a> 54 {END IF} 55 </td> 56 </tr> 57 {END FOR} 58 </tbody> 59 </table> 60 {ELSE} 61 <em>No memos to show.</em> 62 {END IF} 63 64 <hr> 65 66 <div class="row"> 67 <div class="col-lg-5"> 68 <h4>Memos for channel</h4> 69 {IF EXISTS CHANNEL_NAMES} 70 <div> 71 <ul id="channelList"> 72 {FOR CH,ECH IN CHANNEL_NAMES,ESCAPED_CHANNEL_NAMES} 73 <li><a href="/memoserv/memos?channel={ECH}">{CH}</a></li> 74 {END FOR} 75 </ul> 76 </div> 77 {ELSE} 78 <em>You don't have access in any channel</em><br> 79 {END IF} 80 81 </div> 82 <div class="col-lg-7"> 83 <h4>Send a new Memo</h4> 84 <form class="form-horizontal" method="post" action="/memoserv/memos?channel={ESCAPED_CHANNEL}"> 85 <div class="form-group"> 86 <label class="control-label col-lg-2" for="receiver">Receiver:</label> 87 <div class="col-lg-10"> 88 <input class="form-control" type="text" name="receiver" id="receiver" placeholder="Nick or Channel" value=""> 89 </div> 90 </div> 91 <div class="form-group"> 92 <label class="control-label col-lg-2" for="message">Message:</label> 93 <div class="col-lg-10"> 94 <input class="form-control" type="text" name="message" id="message" placeholder="Your message here"> 95 </div> 96 </div> 97 <div class="form-group"> 98 <div class="col-lg-offset-2 col-lg-10"> 99 <button type="submit" class="btn btn-primary">Send</button> 100 </div> 101 </div> 102 </form> 103 </div> 104 </div> 105 106 {IF EXISTS CMDR} 107 <div class="alert alert-info"> 108 {CMDR} 109 </div> 110 {END IF} 111 </div> 112 {INCLUDE footer.html}