-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Styled admin panels to look like projects panel (#1070)
* Styled admin panels to look like projects panel * Fixed tests
- Loading branch information
Showing
7 changed files
with
74 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,4 +125,10 @@ | |
vertical-align: top; | ||
} | ||
|
||
} | ||
|
||
#admin-listing { | ||
.section { | ||
margin-top: 2em; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<div id="admin-listing"> | ||
<% if current_user.eligible_sysadmin?%> | ||
<div class="section"> | ||
<h2>Pending Projects</h2> | ||
<% if !@pending_projects.empty? %> | ||
<div id="projects-listing"> | ||
<% @pending_projects.each do |project| %> | ||
<a href="<%= project_path(project.id) %>"> | ||
<section> | ||
<div class="project <%= "last" if project.equal? @pending_projects.last %>"> | ||
<h2><%= project.title %></h2> | ||
<div class="details"> | ||
<ul> | ||
<li class="status <%= project.status.downcase %>"><%= project.status %></li> | ||
<li class="project-type"><%= project.type %></li> | ||
<li class="user-role"><%= project.role(current_user) %></li> | ||
<li class="last-download"><%= project.latest_file_list_time %></li> | ||
<li class="last-activity"><%= project.last_activity %></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</section> | ||
</a> | ||
<% end %> | ||
</div> | ||
<% else %> | ||
<p> (none) </p> | ||
<% end %> | ||
</div> | ||
<div class="section"> | ||
<h2>Recently Approved Projects</h2> | ||
<% if !@approved_projects.empty? %> | ||
<div id="projects-listing"> | ||
<% @approved_projects.each do |project| %> | ||
<a href="<%= project_path(project.id) %>"> | ||
<section> | ||
<div class="project <%= "last" if project.equal? @approved_projects.last %>"> | ||
<h2><%= project.title %></h2> | ||
<div class="details"> | ||
<ul> | ||
<li class="status <%= project.status.downcase %>"><%= project.status %></li> | ||
<li class="project-type"><%= project.type %></li> | ||
<li class="user-role"><%= project.role(current_user) %></li> | ||
<li class="last-download"><%= project.latest_file_list_time %></li> | ||
<li class="last-activity"><%= project.last_activity %></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</section> | ||
</a> | ||
<% end %> | ||
</div> | ||
<% else %> | ||
<p> (none) </p> | ||
<% end %> | ||
</div> | ||
<% unless current_user.superuser? %> | ||
<%= render partial: "recent_activity" %> | ||
<% end %> | ||
<%end%> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters