diff --git a/app/controllers/async_info_controller.rb b/app/controllers/async_info_controller.rb index 566dbec57..f6ff9c9d0 100644 --- a/app/controllers/async_info_controller.rb +++ b/app/controllers/async_info_controller.rb @@ -56,7 +56,7 @@ class AsyncInfoController < ApplicationController id: @user.id, name: @user.name, username: @user.username, - profile_image_90: ProfileImage.new(@user).get(width: 90), + profile_image_90: Images::Profile.call(@user.profile_image_url, length: 90), followed_tags: @user.cached_followed_tags.to_json(only: %i[id name bg_color_hex text_color_hex hotness_score], methods: [:points]), followed_podcast_ids: @user.cached_following_podcasts_ids, diff --git a/app/controllers/stories_controller.rb b/app/controllers/stories_controller.rb index 7cf5a8893..80466bd7e 100644 --- a/app/controllers/stories_controller.rb +++ b/app/controllers/stories_controller.rb @@ -378,7 +378,7 @@ class StoriesController < ApplicationController }, "url": URL.user(@user), "sameAs": user_same_as, - "image": ProfileImage.new(@user).get(width: 320), + "image": Images::Profile.call(@user.profile_image_url, length: 320), "name": @user.name, "email": @user.email_public ? @user.email : nil, "jobTitle": @user.employment_title.presence, @@ -444,7 +444,7 @@ class StoriesController < ApplicationController "@id": URL.organization(@organization) }, "url": URL.organization(@organization), - "image": ProfileImage.new(@organization).get(width: 320), + "image": Images::Profile.call(@organization.profile_image_url, length: 320), "name": @organization.name, "description": @organization.summary.presence || "404 bio not found" } diff --git a/app/helpers/chat_channel_membership_helper.rb b/app/helpers/chat_channel_membership_helper.rb index dc1ffb8b1..b922d8421 100644 --- a/app/helpers/chat_channel_membership_helper.rb +++ b/app/helpers/chat_channel_membership_helper.rb @@ -8,7 +8,7 @@ module ChatChannelMembershipHelper membership_id: membership.id, role: membership.role, status: membership.status, - image: ProfileImage.new(membership.user).get(width: 90) + image: Images::Profile.call(membership.user.profile_image_url, length: 90) } end end @@ -21,7 +21,7 @@ module ChatChannelMembershipHelper membership_id: membership.id, role: membership.role, status: membership.status, - image: ProfileImage.new(membership.user).get(width: 90) + image: Images::Profile.call(membership.user.profile_image_url, length: 90) } end end diff --git a/app/helpers/chat_channel_memberships_helper.rb b/app/helpers/chat_channel_memberships_helper.rb index 710511bf0..70e31f4ad 100644 --- a/app/helpers/chat_channel_memberships_helper.rb +++ b/app/helpers/chat_channel_memberships_helper.rb @@ -8,7 +8,7 @@ module ChatChannelMembershipsHelper membership_id: membership.id, role: membership.role, status: membership.status, - image: ProfileImage.new(membership.user).get(width: 90), + image: Images::Profile.call(membership.user.profile_image_url, length: 90), chat_channel_name: membership.chat_channel.channel_name, chat_channel_id: membership.chat_channel.id, slug: membership.chat_channel.slug diff --git a/app/helpers/messages_helper.rb b/app/helpers/messages_helper.rb index 2af27b524..46098d6b5 100644 --- a/app/helpers/messages_helper.rb +++ b/app/helpers/messages_helper.rb @@ -8,7 +8,7 @@ module MessagesHelper chat_channel_adjusted_slug: new_message.chat_channel.adjusted_slug(current_user, "sender"), channel_type: new_message.chat_channel.channel_type, username: new_message.user.username, - profile_image_url: ProfileImage.new(new_message.user).get(width: 90), + profile_image_url: Images::Profile.call(new_message.user.profile_image_url, length: 90), message: new_message.message_html, markdown: new_message.message_markdown, edited_at: new_message.edited_at, diff --git a/app/labor/profile_image.rb b/app/labor/profile_image.rb deleted file mode 100644 index e3ed25b70..000000000 --- a/app/labor/profile_image.rb +++ /dev/null @@ -1,13 +0,0 @@ -class ProfileImage - BACKUP_LINK = "https://thepracticaldev.s3.amazonaws.com/i/99mvlsfu5tfj9m7ku25d.png".freeze - - attr_accessor :image_link - - def initialize(resource) - @image_link = resource.profile_image_url - end - - def get(width: 120) - Images::Optimizer.call(image_link || BACKUP_LINK, width: width, height: width, crop: "fill") - end -end diff --git a/app/models/chat_channel.rb b/app/models/chat_channel.rb index dea2750ca..eab7ef3bb 100644 --- a/app/models/chat_channel.rb +++ b/app/models/chat_channel.rb @@ -169,7 +169,7 @@ class ChatChannel < ApplicationRecord def user_obj(membership) { - profile_image: ProfileImage.new(membership.user).get(width: 90), + profile_image: Images::Profile.call(membership.user.profile_image_url, length: 90), darker_color: membership.user.decorate.darker_color, name: membership.user.name, last_opened_at: membership.last_opened_at, diff --git a/app/models/chat_channel_membership.rb b/app/models/chat_channel_membership.rb index 4febd4607..83d8220bf 100644 --- a/app/models/chat_channel_membership.rb +++ b/app/models/chat_channel_membership.rb @@ -50,7 +50,7 @@ class ChatChannelMembership < ApplicationRecord def channel_image if chat_channel.channel_type == "direct" - ProfileImage.new(other_user).get(width: 90) + Images::Profile.call(other_user.profile_image_url, length: 90) else ActionController::Base.helpers.asset_path("organization.svg") end diff --git a/app/models/message.rb b/app/models/message.rb index 4ffb0f882..6989c9e1c 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -109,7 +109,7 @@ class Message < ApplicationRecord target='_blank' rel='noopener' data-content='sidecar-article'> #{"
" if article.main_image.present?}

#{article.title}

-

#{article.cached_user.name}・#{article.readable_publish_date || 'Draft Post'}

+

#{article.cached_user.name}・#{article.readable_publish_date || 'Draft Post'}

".html_safe elsif (tag = rich_link_tag(anchor)) html += "

- + #{user.name}

".html_safe diff --git a/app/models/organization.rb b/app/models/organization.rb index 55b92bb9f..6d6263cf1 100644 --- a/app/models/organization.rb +++ b/app/models/organization.rb @@ -93,7 +93,7 @@ class Organization < ApplicationRecord end def profile_image_90 - ProfileImage.new(self).get(width: 90) + Images::Profile.call(profile_image_url, length: 90) end def enough_credits?(num_credits_needed) diff --git a/app/models/podcast.rb b/app/models/podcast.rb index 70986c12d..4796e310c 100644 --- a/app/models/podcast.rb +++ b/app/models/podcast.rb @@ -43,7 +43,7 @@ class Podcast < ApplicationRecord end def image_90 - ProfileImage.new(self).get(width: 90) + Images::Profile.call(profile_image_url, length: 90) end private diff --git a/app/models/user.rb b/app/models/user.rb index b0c040f9e..f554a12ac 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -490,7 +490,7 @@ class User < ApplicationRecord end def profile_image_90 - ProfileImage.new(self).get(width: 90) + Images::Profile.call(profile_image_url, length: 90) end def unsubscribe_from_newsletters diff --git a/app/serializers/search/podcast_episode_serializer.rb b/app/serializers/search/podcast_episode_serializer.rb index 3b55a9e18..1485fa4f3 100644 --- a/app/serializers/search/podcast_episode_serializer.rb +++ b/app/serializers/search/podcast_episode_serializer.rb @@ -8,7 +8,7 @@ module Search :website_url attribute :main_image do |pde| - ProfileImage.new(pde.podcast).get(width: 90) + Images::Profile.call(pde.podcast.profile_image_url, length: 90) end attribute :slug, &:podcast_slug diff --git a/app/serializers/webhook/user_serializer.rb b/app/serializers/webhook/user_serializer.rb index ad0167309..e07ff9537 100644 --- a/app/serializers/webhook/user_serializer.rb +++ b/app/serializers/webhook/user_serializer.rb @@ -3,10 +3,10 @@ module Webhook attributes :name, :username, :twitter_username, :github_username attribute :website_url, &:processed_website_url attribute :profile_image do |user| - ProfileImage.new(user).get(width: 640) + Images::Profile.call(user.profile_image_url, length: 640) end attribute :profile_image_90 do |user| - ProfileImage.new(user).get(width: 90) + Images::Profile.call(user.profile_image_url, length: 90) end end end diff --git a/app/services/images/profile.rb b/app/services/images/profile.rb new file mode 100644 index 000000000..4031cbbff --- /dev/null +++ b/app/services/images/profile.rb @@ -0,0 +1,14 @@ +module Images + module Profile + BACKUP_LINK = "https://thepracticaldev.s3.amazonaws.com/i/99mvlsfu5tfj9m7ku25d.png".freeze + + def self.call(image_url, length: 120) + Optimizer.call( + image_url || BACKUP_LINK, + width: length, + height: length, + crop: "fill", + ) + end + end +end diff --git a/app/views/admin/comments/index.html.erb b/app/views/admin/comments/index.html.erb index 6e0b94864..8e39a9399 100644 --- a/app/views/admin/comments/index.html.erb +++ b/app/views/admin/comments/index.html.erb @@ -19,7 +19,7 @@
<% if comment.user %> - <%= comment.user.username %> profile <%= comment.user.username %> + <%= comment.user.username %> profile <%= comment.user.username %> <% end %> <% if comment.user && comment.user.twitter_username.present? %> diff --git a/app/views/api/v0/articles/onboarding.json.jbuilder b/app/views/api/v0/articles/onboarding.json.jbuilder index ce578dd28..25754a4c4 100644 --- a/app/views/api/v0/articles/onboarding.json.jbuilder +++ b/app/views/api/v0/articles/onboarding.json.jbuilder @@ -13,6 +13,6 @@ json.array! @articles do |article| json.user do json.name article.user.name - json.profile_image_url ProfileImage.new(article.user).get(width: 90) + json.profile_image_url Images::Profile.call(article.user.profile_image_url, length: 90) end end diff --git a/app/views/api/v0/shared/_follows.json.jbuilder b/app/views/api/v0/shared/_follows.json.jbuilder index afc7c75b4..456337d1e 100644 --- a/app/views/api/v0/shared/_follows.json.jbuilder +++ b/app/views/api/v0/shared/_follows.json.jbuilder @@ -1,4 +1,4 @@ json.name user.name json.path "/#{user.path.delete_prefix('/')}" json.username user.try(:username) || user.name -json.profile_image ProfileImage.new(user).get(width: 60) +json.profile_image Images::Profile.call(user.profile_image_url, length: 60) diff --git a/app/views/api/v0/shared/_organization.json.jbuilder b/app/views/api/v0/shared/_organization.json.jbuilder index e64497d25..d933741b9 100644 --- a/app/views/api/v0/shared/_organization.json.jbuilder +++ b/app/views/api/v0/shared/_organization.json.jbuilder @@ -1,8 +1,6 @@ -organization_profile_image = ProfileImage.new(organization) - json.organization do json.extract!(organization, :name, :username, :slug) - json.profile_image organization_profile_image.get(width: 640) - json.profile_image_90 organization_profile_image.get(width: 90) + json.profile_image Images::Profile.call(organization.profile_image_url, length: 640) + json.profile_image_90 Images::Profile.call(organization.profile_image_url, length: 90) end diff --git a/app/views/api/v0/shared/_user.json.jbuilder b/app/views/api/v0/shared/_user.json.jbuilder index 52ab7809b..d7a1d1344 100644 --- a/app/views/api/v0/shared/_user.json.jbuilder +++ b/app/views/api/v0/shared/_user.json.jbuilder @@ -1,9 +1,7 @@ -user_profile_image = ProfileImage.new(user) - json.user do json.extract!(user, :name, :username, :twitter_username, :github_username) json.website_url user.processed_website_url - json.profile_image user_profile_image.get(width: 640) - json.profile_image_90 user_profile_image.get(width: 90) + json.profile_image Images::Profile.call(user.profile_image_url, length: 640) + json.profile_image_90 Images::Profile.call(user.profile_image_url, length: 90) end diff --git a/app/views/api/v0/users/show.json.jbuilder b/app/views/api/v0/users/show.json.jbuilder index 8720d53fe..44bce87e5 100644 --- a/app/views/api/v0/users/show.json.jbuilder +++ b/app/views/api/v0/users/show.json.jbuilder @@ -13,4 +13,4 @@ json.extract!( ) json.joined_at @user.created_at.strftime("%b %e, %Y") -json.profile_image ProfileImage.new(@user).get(width: 320) +json.profile_image Images::Profile.call(@user.profile_image_url, length: 320) diff --git a/app/views/articles/_about_author.html.erb b/app/views/articles/_about_author.html.erb index ec2fa37c0..8bec12c43 100644 --- a/app/views/articles/_about_author.html.erb +++ b/app/views/articles/_about_author.html.erb @@ -5,7 +5,7 @@
- <%= @user.username %> profile + <%= @user.username %> profile

<%= @user.name %>

diff --git a/app/views/articles/_liquid.html.erb b/app/views/articles/_liquid.html.erb index f1df953ff..a4083a81d 100644 --- a/app/views/articles/_liquid.html.erb +++ b/app/views/articles/_liquid.html.erb @@ -9,7 +9,7 @@ <% end %> diff --git a/app/views/articles/_org_branding.html.erb b/app/views/articles/_org_branding.html.erb index 49d7a38e7..f57e0cf6b 100644 --- a/app/views/articles/_org_branding.html.erb +++ b/app/views/articles/_org_branding.html.erb @@ -2,7 +2,7 @@
diff --git a/app/views/articles/_single_story.html.erb b/app/views/articles/_single_story.html.erb index 01dc0ea79..d0769d5b6 100644 --- a/app/views/articles/_single_story.html.erb +++ b/app/views/articles/_single_story.html.erb @@ -28,7 +28,7 @@ <% end %> - <%= story.cached_user.username %> profile + <%= story.cached_user.username %> profile
diff --git a/app/views/articles/_sticky_nav.html.erb b/app/views/articles/_sticky_nav.html.erb index f811ef258..b9df1b107 100644 --- a/app/views/articles/_sticky_nav.html.erb +++ b/app/views/articles/_sticky_nav.html.erb @@ -4,7 +4,7 @@
crayons-avatar crayons-avatar--xl<% elsif @actor.class.name == "Organization" %>crayons-logo crayons-logo--xl<% end %> mr-2 shrink-0"> - crayons-avatar__image<% elsif @actor.class.name == "Organization" %>crayons-logo__image<% end %>" alt="<%= @actor.name %> profile image"> + crayons-avatar__image<% elsif @actor.class.name == "Organization" %>crayons-logo__image<% end %>" alt="<%= @actor.name %> profile image"> <%= @actor.name %> @@ -72,7 +72,7 @@ <% @sticky_articles.each_with_index do |article, index| %> - <%= article.user.name %> profile image + <%= article.user.name %> profile image
<%= article.title %> diff --git a/app/views/articles/show.html.erb b/app/views/articles/show.html.erb index 05f2f62d8..46ac009f7 100644 --- a/app/views/articles/show.html.erb +++ b/app/views/articles/show.html.erb @@ -124,7 +124,7 @@ <% if @organization %> <%= @organization.name %> @@ -147,7 +147,7 @@
- <%= @user.username %> profile image + <%= @user.username %> profile image <%= @user.name %> diff --git a/app/views/articles/tags/_sidebar.html.erb b/app/views/articles/tags/_sidebar.html.erb index cb770b527..9ee724c75 100644 --- a/app/views/articles/tags/_sidebar.html.erb +++ b/app/views/articles/tags/_sidebar.html.erb @@ -54,7 +54,7 @@ <% @moderators.each do |user| %> <% end %> diff --git a/app/views/chat_channels/show.json.jbuilder b/app/views/chat_channels/show.json.jbuilder index 885442833..1fab47d65 100644 --- a/app/views/chat_channels/show.json.jbuilder +++ b/app/views/chat_channels/show.json.jbuilder @@ -2,7 +2,7 @@ json.messages @chat_messages.reverse do |message| json.extract!(message, :id, :user_id, :edited_at) json.username message.user.username - json.profile_image_url ProfileImage.new(message.user).get(width: 90) + json.profile_image_url Images::Profile.call(message.user.profile_image_url, length: 90) json.message message.message_html json.markdown message.message_markdown json.timestamp message.created_at diff --git a/app/views/comments/_comment.json.jbuilder b/app/views/comments/_comment.json.jbuilder index be524362c..9d90c1fe1 100644 --- a/app/views/comments/_comment.json.jbuilder +++ b/app/views/comments/_comment.json.jbuilder @@ -12,7 +12,7 @@ json.user do json.id current_user.id json.username current_user.username json.name current_user.name - json.profile_pic ProfileImage.new(current_user).get(width: 50) + json.profile_pic Images::Profile.call(current_user.profile_image_url, length: 50) json.twitter_username current_user.twitter_username json.github_username current_user.github_username end diff --git a/app/views/comments/_comment_proper.html.erb b/app/views/comments/_comment_proper.html.erb index 5ac61a776..7ae19702d 100644 --- a/app/views/comments/_comment_proper.html.erb +++ b/app/views/comments/_comment_proper.html.erb @@ -26,7 +26,7 @@
"> - <%= comment.user.username %> profile image + <%= comment.user.username %> profile image <%= comment.user.name %> diff --git a/app/views/comments/_liquid.html.erb b/app/views/comments/_liquid.html.erb index c356f1287..021fc296b 100644 --- a/app/views/comments/_liquid.html.erb +++ b/app/views/comments/_liquid.html.erb @@ -1,7 +1,7 @@
- <%= comment.user.username %> profile image + <%= comment.user.username %> profile image <%= comment.user.name %> diff --git a/app/views/comments/deleted_commentable_comment.html.erb b/app/views/comments/deleted_commentable_comment.html.erb index 4b27253ec..b99c6fb81 100644 --- a/app/views/comments/deleted_commentable_comment.html.erb +++ b/app/views/comments/deleted_commentable_comment.html.erb @@ -23,7 +23,7 @@
"> - <%= @user.username %> profile image + <%= @user.username %> profile image <%= @user.name %> diff --git a/app/views/dashboards/followers.html.erb b/app/views/dashboards/followers.html.erb index d284a4d0f..bb22bb65a 100644 --- a/app/views/dashboards/followers.html.erb +++ b/app/views/dashboards/followers.html.erb @@ -21,7 +21,7 @@ <% if user %>
- <%= user.username %> profile image + <%= user.username %> profile image
diff --git a/app/views/dashboards/following_organizations.html.erb b/app/views/dashboards/following_organizations.html.erb index b26fb03a7..d2607fe6c 100644 --- a/app/views/dashboards/following_organizations.html.erb +++ b/app/views/dashboards/following_organizations.html.erb @@ -21,7 +21,7 @@ <% organization = follow.followable %>
diff --git a/app/views/dashboards/following_users.html.erb b/app/views/dashboards/following_users.html.erb index 5200915ed..5f3e11feb 100644 --- a/app/views/dashboards/following_users.html.erb +++ b/app/views/dashboards/following_users.html.erb @@ -22,7 +22,7 @@ <% if user %>
- <%= user.username %> profile image + <%= user.username %> profile image
diff --git a/app/views/notifications/_broadcast.html.erb b/app/views/notifications/_broadcast.html.erb index edb866a09..3f1daafa8 100644 --- a/app/views/notifications/_broadcast.html.erb +++ b/app/views/notifications/_broadcast.html.erb @@ -3,7 +3,7 @@ <% cache "broadcast-html-#{notification.json_data['broadcast']['title']}" do %> " class="small-pic-link-wrapper">
- link to <%= json_data['s profile"> + link to <%= json_data['s profile">
"> diff --git a/app/views/organizations/_liquid.html.erb b/app/views/organizations/_liquid.html.erb index 3e3e4d2da..61301a8aa 100644 --- a/app/views/organizations/_liquid.html.erb +++ b/app/views/organizations/_liquid.html.erb @@ -8,7 +8,7 @@
- <%= organization.slug + " /> + <%= " />
diff --git a/app/views/organizations/_sidebar_additional.html.erb b/app/views/organizations/_sidebar_additional.html.erb index 008ccb5e1..06837783a 100644 --- a/app/views/organizations/_sidebar_additional.html.erb +++ b/app/views/organizations/_sidebar_additional.html.erb @@ -18,7 +18,7 @@ <% @organization.users.find_each do |user| %> <% end %> diff --git a/app/views/partnerships/_metal_level_form.html.erb b/app/views/partnerships/_metal_level_form.html.erb index 00bf00cf5..7ceb4ff73 100644 --- a/app/views/partnerships/_metal_level_form.html.erb +++ b/app/views/partnerships/_metal_level_form.html.erb @@ -1,5 +1,5 @@
-

@<%= org.slug %>

+

@<%= org.slug %>

This organization account has <%= org.credits.unspent.size %> credits available
<% sponsorships = org.sponsorships.unexpired.where(level: Sponsorship::METAL_LEVELS) %> <% level_sponsorship = sponsorships.where(level: level).take %> diff --git a/app/views/partnerships/_not_enough_credits.html.erb b/app/views/partnerships/_not_enough_credits.html.erb index 3f2e8729e..008c54c8c 100644 --- a/app/views/partnerships/_not_enough_credits.html.erb +++ b/app/views/partnerships/_not_enough_credits.html.erb @@ -1,5 +1,5 @@

What next?

-

Purchase Credits for @<%= org.slug %>

+

Purchase Credits for @<%= org.slug %>

<% if org.credits.unspent.size > 0 %>
This organization account has <%= org.credits.unspent.size %> credits available diff --git a/app/views/partnerships/_tag_form.html.erb b/app/views/partnerships/_tag_form.html.erb index d739fe218..c07afc6bf 100644 --- a/app/views/partnerships/_tag_form.html.erb +++ b/app/views/partnerships/_tag_form.html.erb @@ -1,6 +1,6 @@
<% sponsored_tags = org.sponsorships.unexpired.where(level: :tag).includes(:sponsorable).map { |sp| sp.sponsorable.name } %> -

@<%= org.slug %>

+

@<%= org.slug %>

<% if org.enough_credits?(Sponsorship::CREDITS[level]) %>
This organization account has <%= org.credits.unspent.size %> credits available

diff --git a/app/views/social_previews/articles/article.html.erb b/app/views/social_previews/articles/article.html.erb index fa60c6025..3ff8fbcdb 100644 --- a/app/views/social_previews/articles/article.html.erb +++ b/app/views/social_previews/articles/article.html.erb @@ -127,7 +127,7 @@

<%= @article.title %>

- + <%= truncate @article.user.name, length: 28 %>・<%= @article.readable_publish_date %>
diff --git a/app/views/social_previews/articles/shecoded.html.erb b/app/views/social_previews/articles/shecoded.html.erb index ac878b768..3e84cefe1 100644 --- a/app/views/social_previews/articles/shecoded.html.erb +++ b/app/views/social_previews/articles/shecoded.html.erb @@ -117,7 +117,7 @@

<%= @article.title %>

- + <%= truncate @article.user.name, length: 28 %>・<%= @article.readable_publish_date %>
diff --git a/app/views/social_previews/comment.html.erb b/app/views/social_previews/comment.html.erb index 1e485db59..60b8e45c7 100644 --- a/app/views/social_previews/comment.html.erb +++ b/app/views/social_previews/comment.html.erb @@ -120,7 +120,7 @@

<%= @comment.title %>

- + <%= truncate @comment.user.name, length: 28 %>・<%= @comment.readable_publish_date %>
diff --git a/app/views/social_previews/user.html.erb b/app/views/social_previews/user.html.erb index 65d4eed4c..1b09184af 100644 --- a/app/views/social_previews/user.html.erb +++ b/app/views/social_previews/user.html.erb @@ -110,7 +110,7 @@ <% font_size = 4.6 %> <% end %>

- <%= @user.name %> profile image + <%= @user.name %> profile image <%= truncate @user.name, length: 32 %>
@<%= @user.username %> diff --git a/app/views/users/_liquid.html.erb b/app/views/users/_liquid.html.erb index a15580ca7..182464717 100644 --- a/app/views/users/_liquid.html.erb +++ b/app/views/users/_liquid.html.erb @@ -9,12 +9,12 @@ <% if user_path.present? %>
- <%= " /> + <%= " />
<% else %>
- <%= " /> + <%= " />
<% end %>
diff --git a/app/views/users/_organizations_area.html.erb b/app/views/users/_organizations_area.html.erb index a9b575897..3d36b81e9 100644 --- a/app/views/users/_organizations_area.html.erb +++ b/app/views/users/_organizations_area.html.erb @@ -8,7 +8,7 @@ <% @user.organizations.each do |organization| %> <% end %> diff --git a/app/views/users/_profile.html.erb b/app/views/users/_profile.html.erb index 8b5d21c55..e9d0d554a 100644 --- a/app/views/users/_profile.html.erb +++ b/app/views/users/_profile.html.erb @@ -42,7 +42,7 @@
<% if @user.profile_image_url.present? %> - <%= @user.username %> profile image + <%= @user.username %> profile image <%= f.file_field :profile_image, accept: "image/*", class: "crayons-card crayons-card--secondary p-3 flex items-center flex-1 w-100" %> <% end %>
diff --git a/app/views/users/_profile_header.html.erb b/app/views/users/_profile_header.html.erb index 4493539f9..ed9aee8f3 100644 --- a/app/views/users/_profile_header.html.erb +++ b/app/views/users/_profile_header.html.erb @@ -20,7 +20,7 @@