- <%= sanitize comment.processed_html, - tags: %w[strong em p h1 h2 h3 h4 h5 h6 i u b code pre br ul ol li small sup img a span hr blockquote], - attributes: %w[href strong em ref rel src title alt class] %> + <% @comments.each do |comment| %> +
+ <%= sanitize comment.processed_html, + tags: %w[strong em p h1 h2 h3 h4 h5 h6 i u b code pre br ul ol li small sup img a span hr blockquote], + attributes: %w[href strong em ref rel src title alt class] %> -
-
- <% if comment.user %>
-
-
<%= comment.user.username %>
-
- <% end %>
- <% if comment.user && comment.user.twitter_username.present? %>
- |
-
- @<%= comment.user.twitter_username %>
-
- <% end %>
-
+
+
+ <% if comment.user %>
+
+
<%= comment.user.username %>
+
+ <% end %>
+ <% if comment.user && comment.user.twitter_username.present? %>
+ |
+
+ @<%= comment.user.twitter_username %>
+
+ <% end %>
+
Create New Event
Past <%= num_days %> day new users (<%= User.where("registered_at > ?", num_days.day.ago).count %>)
-Onboarding
-<%= render "results", num_days: 7 %> -<%= render "results", num_days: 1 %> +Onboarding
+ <%= render "results", num_days: 7 %> + <%= render "results", num_days: 1 %> +| Title Link | -User | -Org | -Category | -Cached Tags | -Published? | -Last Bumped | -
|---|---|---|---|---|---|---|
| <%= link_to listing.title, edit_admin_listing_path(listing.id), target: "_blank", rel: "noopener" %> | -<%= link_to listing.user.username, edit_admin_user_path(listing.user.id) %> | -<%= link_to listing.organization.name, admin_organization_path(listing.organization_id) if listing.organization_id.present? %> | -<%= listing.category %> | -<%= listing.cached_tag_list %> | -<%= listing.published ? "Yes" : "No" %> | -<%= listing.bumped_at ? time_ago_in_words(listing.bumped_at) + " ago" : "Draft" %> | -
|
-
-
- <% if listing.last_buffered.present? %>
-
- Last shared: <%= listing.last_buffered.strftime("%d %B %Y") %>
-
- <% end %>
-
- <%= listing.title %> -<%= listing.processed_html&.html_safe %> - <%= form_with url: admin_buffer_updates_path, html: { data: { action: "submit->buffer#highlightElement" } } do %> - - - - +
+ <%= form_tag(admin_listings_path, method: "get") do %>
+
+
+ <%= label_tag(:search, "Keyword") %>
+ <%= text_field_tag(:search, params[:search]) %>
+ <% if params[:state].present? %>
+ <%= hidden_field_tag(:state, params[:state]) %>
<% end %>
- |
- ||||||
| Title Link | +User | +Org | +Category | +Cached Tags | +Published? | +Last Bumped | +
|---|---|---|---|---|---|---|
| <%= link_to listing.title, edit_admin_listing_path(listing.id), target: "_blank", rel: "noopener" %> | +<%= link_to listing.user.username, edit_admin_user_path(listing.user.id) %> | +<%= link_to listing.organization.name, admin_organization_path(listing.organization_id) if listing.organization_id.present? %> | +<%= listing.category %> | +<%= listing.cached_tag_list %> | +<%= listing.published ? "Yes" : "No" %> | +<%= listing.bumped_at ? "#{time_ago_in_words(listing.bumped_at)} ago" : "Draft" %> | +
|
+
+
+ <% if listing.last_buffered.present? %>
+
+ Last shared: <%= listing.last_buffered.strftime("%d %B %Y") %>
+
+ <% end %>
+
+
+ <%= listing.title %> +<%= listing.processed_html&.html_safe %> + <%= form_with url: admin_buffer_updates_path, html: { data: { action: "submit->buffer#highlightElement" } } do %> + + + + + <% end %> + |
+ ||||||
| ID | -User | -Action | -Data | -- <%= tag.span(sort_link(@q, :created_at, "Date"), class: "mx-2") %> - | -
|---|
| <%= action.id %> | -<%= link_to(action.user.username, admin_user_path(action.user_id)) if action.user %> | -<%= "#{action.data['action'].humanize} #{action.data['controller'].humanize.singularize.titleize}" if action.data.present? %> | -<%= action.data %> | -<%= action.created_at %> | +ID | +User | +Action | +Data | ++ <%= tag.span(sort_link(@q, :created_at, "Date"), class: "mx-2") %> + |
|---|
| ID | -Profile | -Comments | -Badges | -Last Comment | - <% if params[:state] == "potential" %> -Action | +||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= mod.id %> | -<%= link_to mod.username, admin_user_path(mod.id) %> | -<%= mod.comments_count %> | -<%= mod.badge_achievements_count %> | -<%= time_ago_in_words mod.last_comment_at %> ago | - <% if params[:state] == "potential" %> -
- <%= form_with model: [:admin, mod], url: admin_mod_path(mod.id), method: :patch, local: true do |f| %>
- <%= f.submit "Make Trusted Mod", class: "btn btn-light js-add-to-mod-channel" %>
+
+
+
+ <%= paginate @mods, theme: "internal" %>
+
+
|
Activity
-
@@ -6,4 +6,4 @@
- <%= @organization.followers.size %> followers
| Name | -ID | -GitHub | -URL | -
|---|
| <%= link_to "@#{organization.name}", admin_organization_path(organization.id) %> | -<%= organization.id %> | - <% if organization.twitter_username %> -<%= link_to organization.twitter_username, "https://twitter.com/#{organization.twitter_username}" %> | - <% else %> -N/A | - <% end %> - <% if organization.github_username %> -<%= link_to organization.github_username, "https://github.com/#{organization.github_username}" %> | - <% else %> -N/A | - <% end %> - <% if organization.url %> -<%= link_to organization.url, organization.url %> | - <% else %> -N/A | - <% end %> +Name | +ID | +GitHub | +URL |
|---|
- <%= @organization.name %><%= link_to "@#{@organization.name}", "/#{@organization.slug}", class: "ml-2", target: "_blank", rel: "noopener" %> -
-Created <%= @organization.created_at.strftime("%b %e '%y") %>
-General Info
--
-
- ID: -
- <%= @organization.id %> -
- name: -
- <%= @organization.name %> -
- Membership Count: -
- <%= @organization.organization_memberships.size %> -
- Email: -
- <%= @organization.email || "N/A" %> -
- Twitter: - <% if @organization.twitter_username %> -
- <%= link_to @organization.twitter_username, "https://twitter.com/#{@organization.twitter_username}" %> - <% else %> -
- N/A - <% end %> -
- GitHub: - <% if @organization.github_username %> -
- <%= link_to @organization.github_username, "https://github.com/#{@organization.github_username}" %> - <% else %> -
- N/A - <% end %> -
Credits (currrent: <%= current_credits %>)
- <%= form_tag update_org_credits_admin_organization_path(@organization), method: :patch, class: "form-inline justify-content-between mb-2" do %> -+ <%= @organization.name %><%= link_to "@#{@organization.name}", "/#{@organization.slug}", class: "ml-2", target: "_blank", rel: "noopener" %> +
+Created <%= @organization.created_at.strftime("%b %e '%y") %>
+General Info
+-
+
- ID: +
- <%= @organization.id %> +
- Name: +
- <%= @organization.name %> +
- Membership Count: +
- <%= @organization.organization_memberships.size %> +
- Email: +
- <%= @organization.email || "N/A" %> +
- Twitter: + <% if @organization.twitter_username %> +
- <%= link_to @organization.twitter_username, "https://twitter.com/#{@organization.twitter_username}" %> + <% else %> +
- N/A + <% end %> +
- GitHub: + <% if @organization.github_username %> +
- <%= link_to @organization.github_username, "https://github.com/#{@organization.github_username}" %> + <% else %> +
- N/A + <% end %> +
Credits (currrent: <%= current_credits %>)
<%= form_tag update_org_credits_admin_organization_path(@organization), method: :patch, class: "form-inline justify-content-between mb-2" do %>Edit <%= @page.title %>
+Edit <%= @page.title %>
+- -
+ +
New Page
+New Page
+Admin Roles
+Admin Roles
+ <%= paginate @users %> -| ID | -Profile | -Roles | -
|---|
| <%= user.id %> | -<%= link_to "@#{user.username}", user.path %> | -
-
|
+ ID | +Profile | +Roles |
|---|
-
+ <% user.roles.pluck(:name, :resource_type, :resource_id).each do |role| %>
+
- <%= role[0] %><%= ": #{role[1]}" if role[1] %><%= "/#{role[2]}" if role[2] %> + <% end %> +
| ID | -Title | -Feed URL | -Eps | -Reach | -Pub | -Status Notice | -Admin | -
|---|---|---|---|---|---|---|---|
| <%= podcast.id %> | -<%= link_to podcast.title, edit_admin_podcast_path(podcast) %> | -<%= link_to podcast.feed_url, podcast.feed_url %> | -<%= podcast.episodes_count %> | -<%= podcast.reachable %> | -<%= podcast.published %> | -<%= podcast.status_notice %> | -- <% podcast.admins.pluck(:username).each do |username| %> - <%= link_to "@#{username}", "/#{username}" %> - <% end %> - | -
| ID | +Title | +Feed URL | +Eps | +Reach | +Pub | +Status Notice | +Admin | +
|---|---|---|---|---|---|---|---|
| <%= podcast.id %> | +<%= link_to podcast.title, edit_admin_podcast_path(podcast) %> | +<%= link_to podcast.feed_url, podcast.feed_url %> | +<%= podcast.episodes_count %> | +<%= podcast.reachable %> | +<%= podcast.published %> | +<%= podcast.status_notice %> | ++ <% podcast.admins.pluck(:username).each do |username| %> + <%= link_to "@#{username}", "/#{username}" %> + <% end %> + | +
| ID | -User | -Type | -Action | -Content | -Date | -
|---|
| <%= reaction.id %> | -<%= link_to reaction.user.username, admin_user_path(reaction.user_id) %> | -<%= reaction.reactable_type %> | -<%= reaction.category %> | -- <% if reaction.reactable_type == "Article" %> - <%= link_to reaction.reactable.title, reaction.reactable.path %> - <% elsif reaction.reactable_type == "User" %> - <%= link_to reaction.reactable.username, reaction.reactable.path %> - <% elsif reaction.reactable_type == "Comment" %> - <%= link_to "#{reaction.reactable.user.username}'s Comment", reaction.reactable.path %> - <% end %> - | -<%= reaction.created_at %> | +ID | +User | +Type | +Action | +Content | +Date |
|---|
Group: <%= group %>
- - <% fields.each do |field| %> -Group: <%= group %>
+
+ <% fields.each do |field| %>
+
+ <%= form_for [:admin, field] do |form| %>
+ <%= render "form", form: form %>
+ <%= form.submit class: "btn btn-primary" %>
+ <% end %>
+ <%= button_to "Delete", admin_profile_field_path(field), data: { confirm: "Are you sure?" }, method: :delete, class: "btn btn-secondary" %>
+
+ <% end %>
<% end %>
-<% end %>
+
diff --git a/app/views/admin/secrets/index.html.erb b/app/views/admin/secrets/index.html.erb
index e76e1676a..15acd78d9 100644
--- a/app/views/admin/secrets/index.html.erb
+++ b/app/views/admin/secrets/index.html.erb
@@ -1,29 +1,31 @@
-<% if !@vault_enabled %>
-
-
- Vault is not currently setup for your application. This means your secrets are being stored as ENV variables and cannot be updated here. To update them you will need to update the appropriate files in your environment.
-
-
-<% end %>
+
+ <% if !@vault_enabled %>
+
+
+ Vault is not currently setup for your application. This means your secrets are being stored as ENV variables and cannot be updated here. To update them you will need to update the appropriate files in your environment.
+
+
+ <% end %>
-
-
-
- Secret Name
- Secret Value
- Action
-
-
-
- <% @secrets.each do |key, partial_value| %>
+
+
- <%= form_with(url: "/admin/secrets", method: "PUT", local: true) do %>
- <%= label_tag key, key %>
- <%= text_field_tag key, partial_value %>
-
- <%= submit_tag("Update", data: { confirm: "My username is @#{current_user.username} and I want to update this Vault Secret." }, disabled: !@vault_enabled) %>
- <% end %>
+ Secret Name
+ Secret Value
+ Action
- <% end %>
-
-
+
+
+ <% @secrets.each do |key, partial_value| %>
+
+ <%= form_with(url: "/admin/secrets", method: "PUT", local: true) do %>
+ <%= label_tag key, key %>
+ <%= text_field_tag key, partial_value %>
+
+ <%= submit_tag("Update", data: { confirm: "My username is @#{current_user.username} and I want to update this Vault Secret." }, disabled: !@vault_enabled) %>
+ <% end %>
+
+ <% end %>
+
+
+
-
-
-
-
- <%= form_tag(admin_tags_path, method: "get") do %>
-
-
- <%= text_field_tag(:search, params[:search]) %>
- <% if params[:state].present? %>
- <%= hidden_field_tag(:state, params[:state]) %>
- <% end %>
- <%= submit_tag("Search") %>
+
+
+
+
+
+
+ <%= form_tag(admin_tags_path, method: "get") do %>
+
+
+ <%= text_field_tag(:search, params[:search], aria: { label: "Search" }) %>
+ <% if params[:state].present? %>
+ <%= hidden_field_tag(:state, params[:state]) %>
+ <% end %>
+ <%= submit_tag("Search") %>
+
-
- <% end %>
-
-
+ <% end %>
+
+
-<%= paginate @tags %>
+ <%= paginate @tags %>
-
- Vault is not currently setup for your application. This means your secrets are being stored as ENV variables and cannot be updated here. To update them you will need to update the appropriate files in your environment. -
-
+ Vault is not currently setup for your application. This means your secrets are being stored as ENV variables and cannot be updated here. To update them you will need to update the appropriate files in your environment. +
+| Secret Name | -Secret Value | -Action | -
|---|
| <%= label_tag key, key %> | -<%= text_field_tag key, partial_value %> | -- <%= submit_tag("Update", data: { confirm: "My username is @#{current_user.username} and I want to update this Vault Secret." }, disabled: !@vault_enabled) %> | - <% end %> +Secret Name | +Secret Value | +Action |
|---|
| Tag | -ID | -Alias For | -Taggings Count | -Category | -Is Moderated? | -
|---|
| <%= link_to tag.name, admin_tag_path(tag.id) %> | -<%= tag.id %> | -<%= tag.alias_for %> | -<%= tag.taggings_count %> | -<%= tag.category %> | -<%= tag.tag_moderator_ids.any? %> | +Tag | +ID | +Alias For | +Taggings Count | +Category | +Is Moderated? |
|---|
#<%= @tag.name %>, tagged <%= @tag.taggings_count %> times.
@@ -23,7 +23,7 @@
<% end %>
<%= form_for [:admin, @tag], html: { class: "form-inline justify-content-between" } do |f| %>
- <%= f.label "Add Moderator (id):", class: "mr-3" %>
+ <%= f.label :tag_moderator_id, "Add Moderator (id):", class: "mr-3" %>
<%= f.text_field :tag_moderator_id, class: "form-control" %>
@@ -84,4 +84,4 @@
<%= f.submit class: "btn btn-primary float-right" %>
<% end %>
-
General Purpose URL Purge
-For a page that should 404. This will purge the page via Fastly.
-Use the full path (<%= app_url("xyz") %>) or the relative path: (/xyz)
-General Purpose URL Purge
+For a page that should 404. This will purge the page via Fastly.
+Use the full path (<%= app_url("xyz") %>) or the relative path: (/xyz)
++
-
Bust Cache For Specific Content
-This clears both the Rails cache & the Fastly cache.
-Bust Cache For Specific Content
+This clears both the Rails cache & the Fastly cache.
+| Target URL | -ID | -Events | -Source | -User | -Created at | -
|---|
| <%= link_to endpoint.target_url, endpoint.target_url %> | -<%= endpoint.id %> | -<%= endpoint.events.join(", ") %> | -<%= endpoint.source %> | -<%= link_to endpoint.user.username, endpoint.user.path %> | -<%= endpoint.created_at.strftime("%H:%M %d %b %Y") %> | +Target URL | +ID | +Events | +Source | +User | +Created At |
|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= link_to endpoint.target_url, endpoint.target_url %> | +<%= endpoint.id %> | +<%= endpoint.events.join(", ") %> | +<%= endpoint.source %> | +<%= link_to endpoint.user.username, endpoint.user.path %> | +<%= endpoint.created_at.strftime("%H:%M %d %b %Y") %> | +
All Welcome Threads
-- -
All Welcome Threads
++ +