summaryrefslogtreecommitdiffstats
path: root/web/templates/channel.html
blob: 94d79a02274cbf64b5aca1174cf97933f4cd010b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{define "channel"}}
<!DOCTYPE html>
<html>
{{template "head" . }}
<body>
  <div id="channel_view" class='channel-view'></div>
<script>
  window.setup_channel_page({{ .Props }}, {{ .Team }}, {{ .Channel }});
  $('body').tooltip( {selector: '[data-toggle=tooltip]'} );
  var modals = $('.modal-body').not('.edit-modal-body');
  if($(window).height() > 1200){
    modals.css('max-height', 1000);
  } else {
    modals.css('max-height', $(window).height() - 200);
  }
  modals.perfectScrollbar();
</script>
</body>
</html>
{{end}}