Skip to content

Commit

Permalink
Merge pull request #214 from ontoportal-lirmm/feature/update-account-…
Browse files Browse the repository at this point in the history
…page-design

Feature: Update submited ontologies and created projet sections design
  • Loading branch information
syphax-bouazzouni authored Mar 16, 2023
2 parents be01df0 + 6381e41 commit 49c291c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
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

0 comments on commit 49c291c

Please sign in to comment.