<% title "Dashboard - DEV" %>
" href="/dashboard"> POSTS (<%= @user.articles_count %>) " href="/dashboard/user_followers"> FOLLOWERS (<%= @user.followers_count %>) " href="/dashboard/following_users"> FOLLOWING (<%= @user.following_users_count %>)
<% if @user.org_admin && @user.organization %>

>MY POSTS ><%= @user.organization.name.upcase %> POSTS

<% end %> <% if @user.org_admin && @user.organization && params[:which] == "organization" %> <% if current_user.can_view_analytics? %>
" /><%= number_with_delimiter(@articles.sum(&:positive_reactions_count), delimeter: ",") %> Total Post Reactions
" />Loading Views Data...
<% end %> <% @articles.each do |article| %>

<%= article.title %>

<% if !article.published %> DRAFT <% end %> EDIT <% if article.published && current_user.can_view_analytics? %> Loading View Data... <% end %>
<%= form_for(article) do |f| %> AUTHOR: <%= f.select(:user_id, options_for_select(@user.organization.users.map {|x| [x.name, x.id] }, article.user_id )) %> <%= f.submit "SUBMIT AUTHOR CHANGE", class:"cta pill black" %> <% end %>
<% end %>
<% elsif params[:which] == "user_followers" || params[:which] == "following_users" %> <% @follows.each do |follow| %> <% user = params[:which] == "user_followers" ? follow.follower : follow.followable %>

<%= user.username %> profile image <%= user.name %> @<%= user.username %>

<% end %> <% elsif @articles.any? %> <% if current_user.can_view_analytics? %>
" /><%= number_with_delimiter(@articles.sum(&:positive_reactions_count), delimeter: ",") %> Total Post Reactions
" />Loading Views Data...
<% end %> <% if current_user.has_role?(:video_permission) %> Upload a Video 🎥 <% end %> <% @articles.each do |article| %>

<%= article.title %>

<% if article.published %> PUBLISHED <% else %> DRAFT <% end %> EDIT DELETE <% if article.published && current_user.can_view_analytics? %> Loading View Data... <% end %>
<% end %> <% else %>

This is where you can manage your posts, but you haven't written anything yet.

Write your first post now <%=image_tag(cl_image_path(asset_path("/assets/sloan.png"), :type=>"fetch", :width => 300, :crop => "imagga_scale", :quality => "auto", :flags => "progressive", :fetch_format => "auto", :sign_url => true), class:"sloan", alt:"sloth-mascot") %>

Also check out the Welcome Thread to introduce yourself!

<% end %>