Skip to content

Commit f362050

Browse files
authored
AO3-6313 Removed updated at info from FAQ categories on admin (#5026)
* AO3-6313 Removed updated at info from FAQ categories on admin * AO3-6313 Removing updated at from cucumber tests --------- Co-authored-by: indes-castille <[email protected]>
1 parent 9fddb0a commit f362050

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

app/views/archive_faqs/_admin_index.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<% @archive_faqs.each do |archive_faq| %>
2121
<dt><%= link_to archive_faq.title, archive_faq %></dt>
2222
<dd>
23-
<p class="datetime"><%= t(".created_updated_date", date_created: l(archive_faq.created_at), date_updated: l(archive_faq.updated_at)) %></p>
23+
<p class="datetime"><%= t(".created_date", date_created: l(archive_faq.created_at)) %></p>
2424
<ul class="navigation actions">
2525
<li><%= link_to t(".show"), archive_faq %></li>
2626
<% if Globalize.locale.to_s != "en" || policy(ArchiveFaq).full_access? %>

app/views/archive_faqs/show.html.erb

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
<% if policy(ArchiveFaq).translation_access? %>
1717
<div class="header">
1818
<h3 class="heading">
19-
Updated: <%= h @archive_faq.updated_at %>
2019
<% if Globalize.locale.to_s != "en" || policy(ArchiveFaq).full_access? -%>
21-
| <%= link_to t(".edit"), edit_archive_faq_path(@archive_faq) %>
20+
<%= link_to t(".edit"), edit_archive_faq_path(@archive_faq) %>
2221
<% end %>
2322
</h3>
2423
</div>

config/locales/views/en.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ en:
399399
archive_faqs:
400400
admin_index:
401401
confirm_delete: Are you sure you want to delete this FAQ category?
402-
created_updated_date: Created at %{date_created} and updated at %{date_updated}
402+
created_date: Created at %{date_created}
403403
delete: Delete
404404
edit: Edit
405405
manage_faqs: Manage Archive FAQs

features/admins/admin_post_faqs.feature

-3
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ Feature: Admin Actions to Post FAQs
161161
And I should not see "Delete"
162162
When I follow "Show"
163163
Then I should not see "Edit" within ".header"
164-
But I should see "Updated:" within ".header"
165164
When I go to the archive_faqs page
166165
And I select "Deutsch" from "Language:"
167166
And I press "Go" within "div#inner.wrapper"
@@ -171,7 +170,6 @@ Feature: Admin Actions to Post FAQs
171170
And I should not see "Delete"
172171
When I follow "Show"
173172
Then I should see "Edit" within ".header"
174-
And I should see "Updated:" within ".header"
175173

176174
Scenario Outline: Links to create and edit FAQs are not shown to unauthorized admins
177175
Given an archive FAQ category with the title "Very important FAQ" exists
@@ -186,7 +184,6 @@ Feature: Admin Actions to Post FAQs
186184
But I should see "Available Categories"
187185
When I follow "Very important FAQ"
188186
Then I should not see "Edit"
189-
And I should not see "Updated:"
190187

191188
Examples:
192189
| role |

0 commit comments

Comments
 (0)