JaBa/dashboard/views/selector.ejs

82 lines
2.4 KiB
Text
Raw Normal View History

2021-12-10 21:39:54 +05:00
<!DOCTYPE html>
<html>
2021-12-24 20:52:27 +05:00
<%- include("includes/head") %>
2021-12-10 21:39:54 +05:00
2021-12-16 23:42:58 +05:00
<body class="hold-transition skin-red sidebar-mini">
<div class="wrapper">
<!-- The header is the topbar -->
2021-12-24 20:52:27 +05:00
<%- include("includes/header") %>
2021-12-10 21:39:54 +05:00
2021-12-16 23:42:58 +05:00
<!-- The sidebar includes the menu -->
2021-12-24 20:52:27 +05:00
<%- include("includes/sidebar") %>
2021-12-10 21:39:54 +05:00
2021-12-16 23:42:58 +05:00
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1> <%= translate("dashboard:SELECTOR") %> <small> Dashboard v1.0 </small> </h1>
<ol class="breadcrumb">
<li class="active"><a href="/"><i class="fa fa-home"></i> <%= translate("dashboard:SELECTOR") %></a>
</li>
</ol>
</section>
<section class="content">
<div class="row">
<% if(user.displayedGuilds) { user.displayedGuilds.forEach(function(guild) { %>
<!-- Displays 4 servers by line -->
<div class="col-md-3">
<div class="box box-solid">
<div class="box-header text-center">
<i class="fas fa-crown"></i>
<h3 class="box-title server-name"><%= guild.name %></h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="text-center">
<img src="<%= guild.iconURL %>" style="border-radius:100%" width="100" height="100"
class="img-fluid">
2021-12-10 21:39:54 +05:00
</div>
</div>
2021-12-16 23:42:58 +05:00
<!-- /.box-body -->
<div class="box-footer">
<a href="<%= guild.settingsUrl %>"><button
class="btn btn-block btn-success"><%= translate("dashboard:MANAGE") %></button></a>
</div>
<!-- /.box-footer -->
2021-12-10 21:39:54 +05:00
</div>
2021-12-16 23:42:58 +05:00
<!-- /.box -->
</div>
<!-- /.col -->
2021-12-10 21:39:54 +05:00
<% }); } else { %>
2021-12-16 23:42:58 +05:00
<div class="col-md-12">
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title"><%= translate("dashboard:NO_SERVER") %></h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i
class="fa fa-minus"></i>
2021-12-10 21:39:54 +05:00
</button>
</div>
2021-12-16 23:42:58 +05:00
<!-- /.box-tools -->
2021-12-10 21:39:54 +05:00
</div>
2021-12-16 23:42:58 +05:00
<!-- /.box-header -->
<div class="box-body">
<%= translate("dashboard:NO_SERVER_CONTENT") %>
</div>
<!-- /.box-body -->
2021-12-10 21:39:54 +05:00
</div>
2021-12-16 23:42:58 +05:00
<!-- /.box -->
2021-12-10 21:39:54 +05:00
</div>
2021-12-16 23:42:58 +05:00
<% } %>
</div>
2021-12-16 23:42:58 +05:00
</section>
2021-12-10 21:39:54 +05:00
</div>
2021-12-16 23:42:58 +05:00
<!-- Footer includes credits and version -->
2021-12-24 20:52:27 +05:00
<%- include("includes/footer") %>
2021-12-16 23:42:58 +05:00
</div>
<!-- ./wrapper -->
</body>
</html>