From 2db39c049ea9dc43f5aa1bc0672291576aa0dda2 Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Wed, 21 Aug 2019 13:10:54 +0200 Subject: [PATCH] Remove projects archive page --- app/views/projects/archive.html.erb | 54 ------------------- app/views/projects/archive/_project.html.erb | 46 ---------------- .../projects/archive/_team_projects.html.erb | 16 ------ config/locales/en.yml | 3 -- 4 files changed, 119 deletions(-) delete mode 100644 app/views/projects/archive.html.erb delete mode 100644 app/views/projects/archive/_project.html.erb delete mode 100644 app/views/projects/archive/_team_projects.html.erb diff --git a/app/views/projects/archive.html.erb b/app/views/projects/archive.html.erb deleted file mode 100644 index 03753fd4e..000000000 --- a/app/views/projects/archive.html.erb +++ /dev/null @@ -1,54 +0,0 @@ -<% provide(:head_title, t("projects.archive.head_title")) %> -<%= render partial: "shared/sidebar", locals: { page: 'project' } %> -<%= render partial: "shared/secondary_navigation" %> - -
- <% if @archived_projects_by_teams.length > 0 %> -
- -
- -
- - - -
-
-
- - <% @archived_projects_by_teams.each do |team, projects| %> - <%= render partial: 'projects/archive/team_projects', - locals: {team: team, projects: projects} %> - <% end %> - <% else %> -
-
-

<%=t "projects.index.no_archived_projects" %>

-
-
-
-
- <%= link_to t("projects.index.back_to_projects_index"), projects_path %> -
-
- -
-
-
- <% end %> -
diff --git a/app/views/projects/archive/_project.html.erb b/app/views/projects/archive/_project.html.erb deleted file mode 100644 index ee563ae1d..000000000 --- a/app/views/projects/archive/_project.html.erb +++ /dev/null @@ -1,46 +0,0 @@ -
-
- <% if can_restore_project?(project) %> - - <% end %> - -

- <% if project.hidden? then %> - - <% else %> - - <% end %> - <%= project.name %> -

-
- -
-
-
<%= t('projects.index.start_date') %>
-
- <%=l project.created_at, format: :full_date %> -
-
-
-
diff --git a/app/views/projects/archive/_team_projects.html.erb b/app/views/projects/archive/_team_projects.html.erb deleted file mode 100644 index c501786c5..000000000 --- a/app/views/projects/archive/_team_projects.html.erb +++ /dev/null @@ -1,16 +0,0 @@ -
-<% projects.each_index do |i| project = projects[i] %> -
- <%= render partial: "projects/archive/project", locals: { project: project } %> -
- <% if (i+1) % 4 == 0 %> -
- <% end %> - <% if (i+1) % 3 == 0 %> -
- <% end %> - <% if (i+1) % 2 == 0 %> -
- <% end %> -<% end %> -
diff --git a/config/locales/en.yml b/config/locales/en.yml index 840309479..91c7f0742 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -281,8 +281,6 @@ en: options_header: "Options" comment_placeholder: "Your Message" more_comments: "More Comments" - no_archived_projects: "No archived projects!" - back_to_projects_index: "Back to home" modal_new_project: modal_title: "Create new project" create: "Create" @@ -331,7 +329,6 @@ en: success_flash: "Project %{name} successfully updated." error_flash: "Project %{name} not updated." archive: - head_title: "Projects Archive" success_flash: "Project %{name} successfully archived." error_flash: "Project %{name} not archived." restore: