Skip to content

Commit

Permalink
updated the syntaxes acording to the instructions (#11299)
Browse files Browse the repository at this point in the history
* updated the syntaxes acording to the instructioons

* Update app/views/users/settings.html.erb

Co-authored-by: Tilda Udufo <mathildaudufo@gmail.com>

* Update app/views/users/settings.html.erb

Co-authored-by: Tilda Udufo <mathildaudufo@gmail.com>

* Update app/views/users/settings.html.erb

Co-authored-by: Tilda Udufo <mathildaudufo@gmail.com>

* Update app/views/users/settings.html.erb

Co-authored-by: Tilda Udufo <mathildaudufo@gmail.com>

* Update app/views/users/settings.html.erb

Co-authored-by: Tilda Udufo <mathildaudufo@gmail.com>

* updated the syntax acc to instructions

* Update app/views/users/settings.html.erb

Co-authored-by: Tilda Udufo <mathildaudufo@gmail.com>

Co-authored-by: Tilda Udufo <mathildaudufo@gmail.com>
  • Loading branch information
aakash-gorai and TildaDares committed Jul 22, 2022
1 parent 342f584 commit 4e751f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
13 changes: 9 additions & 4 deletions app/views/users/settings.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<form name="settingsForm" action="/save_settings" method='post' data-remote="true" class="mx-3">
<div class="emailSettings">
<h4><b><%=translation('user.settings.email_notifications_title')%></b></h4>
<h4><b><%=translation('users.settings.email_notifications_title')%></b></h4>
<hr style="width: 35%; margin-left: 0;" />

<h4><b><%=translation('users.settings.notified_by_email')%></b></h4>
<p class="notif-desc"><b><%=translation('users.settings.notified_by_email')%></b></p>

<div style="display: inline-flex; justify-content: space-between; width: 90%;">
<span><%=translation('users.settings.direct_comment')%> </span>
Expand Down Expand Up @@ -64,7 +64,8 @@
<% end %>

<br />
<h4><b><%= translation('users.settings.email_notifications')%> </b></h4>
<h5><b><%= translation('users.settings.email_digests')%> </b></h5>
<p class="notif-desc"><b><%= translation('users.settings.email_notifications')%> </b></p>

<div style="display: inline-flex; justify-content: space-between; width: 90%;">
<span><%=translation('users.settings.weekly_digest')%> </span>
Expand Down Expand Up @@ -129,7 +130,7 @@
<h4><b>Browser Notifications</b></h4>
<hr style="width: 35%; margin-left: 0;" />

<h4><b><%=translation('users.settings.browser_notifications')%> </b></h4>
<p class="notif-desc"><b><%=translation('users.settings.browser_notifications')%> </b></p>

<div style="display: inline-flex; justify-content: space-between; width: 90%;">
<span><%=translation('users.settings.mentioned')%></span>
Expand Down Expand Up @@ -286,6 +287,10 @@
.slider.round:before {
border-radius: 50%;
}

.notif-desc {
font-size: 1.1rem;
}
</style>

<script>
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ en:
moderation_email: "Moderation emails"
email_notifications: "Email notifications are sent for each post in topics you follow. If you prefer to receive a digest, choose one of these options:"
email_notifications_title: "Email Notifications"
email_digests: "Email Digests"
weekly_digest: "In a weekly digest"
daily_digest: "In a daily digest"
spam_weekly_digest: "In a weekly digest for unmoderated posts"
Expand Down

0 comments on commit 4e751f9

Please sign in to comment.