Skip to content

Commit 927f736

Browse files
committed
applying a couple of trivial fixes
1 parent d44dc06 commit 927f736

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

app/views/admin/admin_email.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<%= form_with url: send_moderator_email_path do |f| %>
77
<div class="form-group">
88
<%= f.label :subject, t('g.subject').capitalize, class: 'form-element' %>
9-
<%= f.text_field :subject, class: 'form-element' %>
9+
<%= f.text_field :subject, class: 'form-element' %>
1010
</div>
1111

1212
<%= render 'shared/body_field', f: f, field_name: :body_markdown, field_label: t('g.body').capitalize, post: nil %>

app/views/admin/all_email.html.erb

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
<%= render 'posts/markdown_script' %>
2-
3-
<div class="notice is-danger">
4-
<p>
5-
<i class="fas fa-exclamation-triangle"></i> Please be careful, as this tool sends a lot of emails.
6-
</p>
7-
</div>
8-
9-
<h1><%= t 'admin.tools.email_all' %></h1>
10-
<p><%= t 'admin.email_all_blurb' %></p>
11-
12-
<%= form_with url: send_all_email_path do |f| %>
13-
<div class="form-group">
14-
<%= f.label :subject, t('g.subject').capitalize, class: 'form-element' %>
15-
<%= f.text_field :subject, class: 'form-element', required: true %>
16-
</div>
17-
18-
<%= render 'shared/body_field', f: f, field_name: :body_markdown, field_label: t('g.body').capitalize, post: nil %>
19-
20-
<div class="post-preview"></div>
21-
22-
<%= f.submit t('g.send').capitalize, class: 'button is-filled',
23-
onclick: "return confirm('Are you sure you want to send this email to all users?')" %>
24-
<% end %>
1+
<%= render 'posts/markdown_script' %>
2+
3+
<div class="notice is-danger">
4+
<p>
5+
<i class="fas fa-exclamation-triangle"></i> Please be careful, as this tool sends a lot of emails.
6+
</p>
7+
</div>
8+
9+
<h1><%= t 'admin.tools.email_all' %></h1>
10+
<p><%= t 'admin.email_all_blurb' %></p>
11+
12+
<%= form_with url: send_all_email_path do |f| %>
13+
<div class="form-group">
14+
<%= f.label :subject, t('g.subject').capitalize, class: 'form-element' %>
15+
<%= f.text_field :subject, class: 'form-element', required: true %>
16+
</div>
17+
18+
<%= render 'shared/body_field', f: f, field_name: :body_markdown, field_label: t('g.body').capitalize, post: nil %>
19+
20+
<div class="post-preview"></div>
21+
22+
<%= f.submit t('g.send').capitalize, class: 'button is-filled',
23+
onclick: "return confirm('Are you sure you want to send this email to all users?')" %>
24+
<% end %>

app/views/comments/_reply_to_thread.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@
5050
post: thread.post_id,
5151
character_count: ".js-character-count-#{post.id}" } %>
5252
<%= render 'shared/char_count', type: post.id, min: 15, max: 1000 %>
53-
<%= submit_tag 'Add reply', class: 'button is-muted is-filled', disabled:true %>
53+
<%= submit_tag 'Add reply', class: 'button is-muted is-filled', disabled: true %>
5454
<% end %>
5555
<% end %>

0 commit comments

Comments
 (0)