add entry requests, invite new users
This commit is contained in:
@@ -79,6 +79,32 @@
|
||||
font-size: 14px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.entry-box {
|
||||
background: #f0fdf4;
|
||||
border-left: 4px solid #10b981;
|
||||
padding: 16px;
|
||||
margin: 20px 0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.entry-box h3 {
|
||||
margin: 0 0 12px 0;
|
||||
color: #065f46;
|
||||
font-size: 16px;
|
||||
}
|
||||
.entry-translations {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
.entry-translations dt {
|
||||
font-weight: 600;
|
||||
color: #064e3b;
|
||||
}
|
||||
.entry-translations dd {
|
||||
margin: 0;
|
||||
color: #1e293b;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -90,11 +116,53 @@
|
||||
<div class="content">
|
||||
<p class="greeting">Hello <%= @user.name %>,</p>
|
||||
|
||||
<p>
|
||||
The <strong>Sanasto Wiki</strong> let you search and compare, or download, translations across languages used all over the living Christianity.
|
||||
</p>
|
||||
<% if @approved_entry %>
|
||||
<p>
|
||||
Great news! Your entry request has been <strong>approved</strong> and is ready to be published.
|
||||
</p>
|
||||
|
||||
<p>With a login account, you can contribute to this work.</p>
|
||||
<div class="entry-box">
|
||||
<h3>✓ Your Approved Entry</h3>
|
||||
<p style="margin: 0 0 4px 0;"><strong>Category:</strong> <%= @approved_entry.category.to_s.humanize %></p>
|
||||
|
||||
<dl class="entry-translations">
|
||||
<% if @approved_entry.fi.present? %>
|
||||
<dt>🇫🇮 Finnish:</dt>
|
||||
<dd><%= @approved_entry.fi %></dd>
|
||||
<% end %>
|
||||
<% if @approved_entry.en.present? %>
|
||||
<dt>🇬🇧 English:</dt>
|
||||
<dd><%= @approved_entry.en %></dd>
|
||||
<% end %>
|
||||
<% if @approved_entry.sv.present? %>
|
||||
<dt>🇸🇪 Swedish:</dt>
|
||||
<dd><%= @approved_entry.sv %></dd>
|
||||
<% end %>
|
||||
<% if @approved_entry.no.present? %>
|
||||
<dt>🇳🇴 Norwegian:</dt>
|
||||
<dd><%= @approved_entry.no %></dd>
|
||||
<% end %>
|
||||
<% if @approved_entry.ru.present? %>
|
||||
<dt>🇷🇺 Russian:</dt>
|
||||
<dd><%= @approved_entry.ru %></dd>
|
||||
<% end %>
|
||||
<% if @approved_entry.de.present? %>
|
||||
<dt>🇩🇪 German:</dt>
|
||||
<dd><%= @approved_entry.de %></dd>
|
||||
<% end %>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
To complete the process and publish your entry, please accept this invitation to create your account on <strong>Sanasto Wiki</strong>.
|
||||
</p>
|
||||
<% else %>
|
||||
<p>
|
||||
The <strong>Sanasto Wiki</strong> let you search and compare, or download, translations across languages used all over the living Christianity.
|
||||
</p>
|
||||
|
||||
<p>With a login account, you can contribute to this work.</p>
|
||||
<% end %>
|
||||
|
||||
<div class="info-box">
|
||||
<p style="margin: 0;"><strong>Your Account Details:</strong></p>
|
||||
|
||||
Reference in New Issue
Block a user