diff --git a/app/views/organizations/show.html.erb b/app/views/organizations/show.html.erb index 322d5966..93ccafda 100644 --- a/app/views/organizations/show.html.erb +++ b/app/views/organizations/show.html.erb @@ -4,7 +4,6 @@

<%= @organization.name %>

-

<%= @organization.description %>

-
+
<% if @jobs.present? %> -
-

Jobs

-
-
- <% @jobs.each do |job| %> -
-
-
-
<%= link_to job.title, job.apply_url %> at <%= link_to job.organization.name, job.organization.url %>
+
+

Jobs

+
+
+ <% @jobs.each do |job| %> +
+
+
+
<%= link_to job.title, job.apply_url %> at <%= link_to job.organization.name, job.organization.url %>
+
+
+
<%= "{ " + job.technology_list.to_s + " }" unless !job.technology_list.present? %>
+
-
-
<%= "{ " + job.technology_list.to_s + " }" unless !job.technology_list.present? %>
+
+
+

<%= job.overview %>

+
-
-
-

<%= job.overview %>

-
-
-
- <% end %> + <% end %> +
-
<% end %> <% if !@projects.present? && (@jobs.present? | @sponsorships.present?) %> <% else %> -
-

Projects

-
- - <% if @projects.present? %> - <% @projects.each do |project| %> -
-
-
<%= link_to project.name, project_path(project) %>
-
    -
  • <%= link_to ' '.html_safe + project.github_display + " Code", project.github_url, :target => '_blank' unless !project.github_url.present? %>
  • -
  • <%= link_to ' '.html_safe + project.name + " Open Tasks", project.tasks_url, :target => '_blank' unless !project.tasks_url.present? %>
  • -
-

<%= project.description %>

-
-
-
-
Causes
- <%= project_tags_link_list project, 'causes' %> -
- -
-
Technologies
- <%= project_tags_link_list project, 'technologies' %> -
-
-
+
+

Projects

+
+ <% if @projects.present? %> + <% @projects.each do |project| %> + <%= render partial: 'projects/project', locals: {project: project} %> + <% end %> + <% else %> +

Aww, bummer. There aren't any current projects for this organization. Check out other projects <%= link_to "here", projects_path %>.

<% end %> - <% else %> -

Aww, bummer. There aren't any current projects for this organization. Check out other projects <%= link_to "here", projects_path %>.

- <% end %> -
-
+
+
<% end %> <% if @sponsorships.present? %> -
-

Sponsorships

-
-
-
-
<%= link_to "Coder Day of Service 2014", coder_day_path %>
- <%= link_to (image_tag 'coder_day_badge_logo.png', :width => "120"), coder_day_path %> +
+

Sponsorships

+
+
+
+
<%= link_to "Coder Day of Service 2014", coder_day_path %>
+ <%= link_to (image_tag 'coder_day_badge_logo.png', :width => "120"), coder_day_path %> +
-
<% end %>
- + \ No newline at end of file