Skip to content

Commit 199b630

Browse files
authored
Merge pull request #1961 from codidact/0valt/1396/deleted-users
Remove all hardcoded Codidactyl references from QPixel
2 parents b9bb266 + acc3294 commit 199b630

22 files changed

Lines changed: 218 additions & 169 deletions

app/assets/stylesheets/application.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display&family=Roboto&family=Roboto+Mono&display=swap');
1818
@import 'variables';
1919

20+
html, body {
21+
height: 100%;
22+
}
23+
2024
h1, h2, h3, h4, h5, h6 {
2125
font-family: $font-stack-display;
2226
}

app/assets/stylesheets/tour.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
.codidactyl {
1+
.mascot {
22
width: 80px;
33
padding: 2rem;
44
margin-top: 1rem;
55
}
66

7-
.codidactyl + .is-flexible {
7+
.mascot + .is-flexible {
88
width: 0;
99
}
1010

11-
.codidactyl-hints {
11+
.mascot-hints {
1212
padding: 1rem;
1313
}
1414

15-
.codidactyl-sticky {
15+
.mascot-sticky {
1616
position: sticky;
1717
top: 0.5rem;
1818
}
1919

20-
.codidactyl-small {
20+
.mascot-small {
2121
max-height: 1em;
2222
}
2323

app/controllers/users_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def check_deleted
682682
go_to_not_found = !current_user&.at_least_moderator? || params[:deleted_screen].present?
683683

684684
if deleted && go_to_not_found
685-
render :deleted_user, layout: 'without_sidebar', status: 404
685+
not_found!
686686
end
687687
end
688688
end

app/models/application_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def self.useful_err_msg
8080
'random data again.',
8181
'This community has reached a critical mass and collapsed into a black hole. Currently trying to ' \
8282
'recover using Hawking radiation.',
83-
'Operations are on pause while we attempt to recapture the codidactyl. Please hold.',
83+
'Operations are on pause while we attempt to recapture the pixel. Please hold.',
8484
'The data center is on fire. Please hold while we activate fire suppression systems.',
8585
'The reciprocal controller flag is set incorrectly. Please stand on your head and rickroll yourself to fix this.',
8686
'The quantum cache has become uncertain. Please observe it again after making a cup of tea.',

app/views/devise/mailer/_friendly_footer.html.erb

Lines changed: 0 additions & 3 deletions
This file was deleted.

app/views/devise/mailer/confirmation_instructions.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
<%= confirmation_url(@resource, confirmation_token: @token, host: RequestContext.community.host) %>
1515
</p>
1616

17-
<%= render 'devise/mailer/friendly_footer' %>
17+
<%= sanitize(render_markdown(SiteSetting['FriendlyEmailFooter']), scrubber: scrubber) %>

app/views/devise/mailer/email_changed.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
</p>
2020
<% end %><br/>
2121

22-
<%= render 'devise/mailer/friendly_footer' %>
22+
<%= sanitize(render_markdown(SiteSetting['FriendlyEmailFooter']), scrubber: scrubber) %>

app/views/devise/mailer/password_change.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
<%= link_to 'change your password now', new_password_url(@resource) %> to protect your account.
99
</p>
1010

11-
<%= render 'devise/mailer/friendly_footer' %>
11+
<%= sanitize(render_markdown(SiteSetting['FriendlyEmailFooter']), scrubber: scrubber) %>

app/views/devise/mailer/reset_password_instructions.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
above and set a new password.
1212
</p>
1313

14-
<%= render 'devise/mailer/friendly_footer' %>
14+
<%= sanitize(render_markdown(SiteSetting['FriendlyEmailFooter']), scrubber: scrubber) %>

app/views/devise/mailer/unlock_instructions.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
<p><%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token), class: 'button is-filled' %></p>
88

9-
<%= render 'devise/mailer/friendly_footer' %>
9+
<%= sanitize(render_markdown(SiteSetting['FriendlyEmailFooter']), scrubber: scrubber) %>

0 commit comments

Comments
 (0)