Skip to content

Commit

Permalink
Allowing system adiministrators to click on an approved project on th…
Browse files Browse the repository at this point in the history
…e sysadmin dashboard (#609)
  • Loading branch information
JaymeeH authored Mar 26, 2024
1 parent 794e023 commit 2d16b0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
17 changes: 6 additions & 11 deletions app/assets/stylesheets/_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,19 @@
text-decoration: underline;
text-decoration-thickness: 3px;
}
}

#dashboard-projects {
@include dashboard-component;
min-width: 40em;

.project-list {
list-style-type: none;
a {
color: black;
}
}
}

#dashboard-projects {
@include dashboard-component;
min-width: 40em;

.btn-dark {
margin-left: 0.5em;
margin-bottom: 0.5em;
Expand All @@ -51,12 +52,6 @@

#dashboard-pending{
@include dashboard-component;
.project-list {
list-style-type: none;
a {
color: black;
}
}
margin-top: 1em;
min-width: 30em;
}
Expand Down
4 changes: 2 additions & 2 deletions app/views/welcome/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
<div id="dashboard-approved">
<h2>Approved Projects</h2>
<% if !@approved_projects.empty? %>
<ul>
<ul class="project-list">
<% @approved_projects.each do |project| %>
<li>
<%= project.title %>
<%= link_to(project.title, project) %>
</li>
<% end %>
</ul>
Expand Down

0 comments on commit 2d16b0d

Please sign in to comment.