-
Notifications
You must be signed in to change notification settings - Fork 1
/
request.ejs
39 lines (34 loc) · 1.83 KB
/
request.ejs
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
<% include ./partials/header %>
<body>
<main>
<div class="container">
<div class="col s12 center-align"><h4>Room 15 Access Request</h4></div>
<div class="col s12 "><p class="flow-text">Hey there, <%= display_name %>! Looks like you've requested access to <a href="http://chat.stackoverflow.com/rooms/15/android" target="_BLANK">Room 15</a> (Android Chatroom) on Stack Overflow. </p></div>
<% if(insufficientRep || badratio || defaultLikeUsername) { %>
<div class="col s12 "><p class="flow-text">
Unfortunately, you don't meet our room requirements. <span class="grey-text lighten 2">403 Forbidden</span>
</p></div>
<% }%>
<% if(insufficientRep || badratio) { %>
<div class="col s12 "><p class="flow-text">
In detail, it looks like<% if(insufficientRep) { %> you don't meet our minimum reputation requirement of 80, as you currently have a reputation of <%= rep %><% } %><% if(insufficientRep && badratio) { %>, and<% } %><% if(badratio) { %> you don't meet our q:a ratio requirement of 3:4, as your current ratio is <%= qaratios %><% } %>.
</p></div>
<% }%>
<% if(defaultLikeUsername) { %>
<div class="col s12 "><p class="flow-text">
It <% if(insufficientRep || badratio) { %> also<% } %> looks like you have a default username, or one similar to it (user<number>). We require everyone to have reasonably unique usernames to prevent confusion, and to be able to easily tell who is speaking.
</p></div>
<% }%>
<% if(insufficientRep || badratio || defaultLikeUsername) { %>
<div class="col s12 center-align"><p class="flow-text">
<span class="grey-text lighten 2">That's all we know.</span>
</p></div>
<% }%>
</div>
Rep: <%= rep %>
BadRatio: <%= badratio %>
InsufficientRep: <%= insufficientRep %>
QARatio: <%= qaratio %>
StringQARatio<%= qaratios %>
DefaultLikeUsername: <%= defaultLikeUsername %>
<% include ./partials/footer %>