Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Update submited ontologies and created projet sections design #214

Merged
merged 2 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions app/assets/stylesheets/account.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,21 @@ svg path{
padding: unset !important;
box-shadow: unset !important;
}
.account-page-small-cards-container{
display: flex;
flex-wrap: wrap;
}
.account-page-submitted-ontology{
background-color: #F6F6F6;
padding: 10px;
border-radius: 5px;
margin-right: 10px;
margin-top: 10px;

}

.account-page-submitted-ontology a{
color: #666666;
font-weight: 400;
color: #777777 !important;
font-weight: 500;
font-size: 15px;
}
.no-margin{
Expand Down
14 changes: 8 additions & 6 deletions app/views/users/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,18 @@
- no_ontologies = false
.account-page-card
%h4.account-page-card-title Submitted ontologies
- @admin_ontologies.each do |ont|
.account-page-submitted-ontology
%a{href: "/ontologies/#{ont.acronym}"}= ont.name
.account-page-small-cards-container
- @admin_ontologies.each do |ont|
.account-page-submitted-ontology
%a{href: "/ontologies/#{ont.acronym}"}= ont.name
- unless @user_projects.nil? || @user_projects.empty?
- no_ontologies = false
.account-page-card
%h4.account-page-card-title Projects Created
- @user_projects.each do |project|
.account-page-submitted-ontology
%a{href: "/projects/#{project.acronym}"}= project.name
.account-page-small-cards-container
- @user_projects.each do |project|
.account-page-submitted-ontology
%a{href: "/projects/#{project.acronym}"}= project.name
- if no_ontologies
.account-page-card
.account-page-no-ontology
Expand Down