forked from ontoportal/ontoportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: simplify the see all metadata page (#409)
* update the maintenance page * use in the footer portal name configuration variable instead of UI_THEME * put in all metadata modal title to have the filled percentage metric * simplify the all metadata modal table to show only the filled metadata
- Loading branch information
1 parent
1736a19
commit b37043e
Showing
8 changed files
with
44 additions
and
106 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
11 changes: 3 additions & 8 deletions
11
app/components/submission_metadata_component/submission_metadata_component.html.haml
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 |
---|---|---|
@@ -1,18 +1,13 @@ | ||
= render TableComponent.new(id: 'submission_metadata_table', borderless: true, layout_fixed: true) do |t| | ||
- t.header do |h| | ||
- h.th(width:'15%') {"Label"} | ||
- h.th(width:'50%') {"Value"} | ||
- h.th(width:'35%') {"Metadata"} | ||
|
||
- @metadata_list.each do |metadata, label| | ||
- next if Array(@submission.send(metadata)).empty? | ||
- t.row do |r| | ||
- r.td do | ||
= label || metadata.underscore.humanize | ||
= attr_label(metadata.to_s, attr_metadata: attr_metadata(metadata.to_s)) | ||
- r.td do | ||
.d-flex.flex-wrap.align-items-center | ||
= display_attributes(metadata) | ||
- r.td {attribute_help_text(attr_metadata(metadata))} | ||
:javascript | ||
$("#submission_metadata_table").dataTable({ paging: false, autoWidth: false }) | ||
$("#submission_metadata_table").dataTable({ paging: false, autoWidth: true, search :false }) | ||
|
||
|
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
14 changes: 2 additions & 12 deletions
14
app/views/ontologies/sections/_additional_metadata.html.haml
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 |
---|---|---|
@@ -1,18 +1,8 @@ | ||
= turbo_frame_tag 'application_modal_content' do | ||
- sub_hash = @submission_latest.to_hash.except(:context, :links, :ontology) | ||
%div.card.overflow-hidden{style: 'border-radius: 20px;'} | ||
%div | ||
= render Display::AlertComponent.new(closable: false) do | ||
%div.d-flex.align-items-center | ||
%div{style:'width: 50px; height: 50px'} | ||
- sub_values = sub_hash.values | ||
- count = sub_values.count{|x| !(x.nil? || x.to_s.empty?)} | ||
= render CircleProgressBarComponent.new(count: count , max: sub_values.size ) | ||
%div.mx-1 | ||
of the metadata attributes were filled | ||
%section.px-4{style:'height: 70vh; overflow-y: scroll'} | ||
%section{style:'height: 70vh; overflow-y: scroll'} | ||
= render SubmissionMetadataComponent.new(submission: @submission_latest, submission_metadata: submission_metadata) unless @submission_latest.nil? | ||
%div.scroll-message.text-center.py-3.bg-light.text-primary | ||
%p.scroll-text.mb-0 | ||
Scroll down to see more | ||
%i.scroll-icon.fa.fa-chevron-down | ||
%i.scroll-icon.fa.fa-chevron-down |
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 |
---|---|---|
@@ -1,60 +1,18 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html> | ||
<head> | ||
<title>BioPortal :: Down for maintenance</title> | ||
|
||
<link href="/maintenance/tripoli.simple.css" type="text/css" rel="stylesheet"> | ||
<!--[if IE]><link rel="stylesheet" type="text/css" href="/maintenance/tripoli.simple.ie.css"><![endif]--> | ||
<!doctype html> | ||
<title>Site Maintenance</title> | ||
<style> | ||
body { text-align: center; padding: 150px; } | ||
h1 { font-size: 50px; } | ||
body { font: 20px Helvetica, sans-serif; color: #333; } | ||
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | ||
a { color: #dc8100; text-decoration: none; } | ||
a:hover { color: #333; text-decoration: none; } | ||
</style> | ||
|
||
<style type="text/css"> | ||
#bp_down { | ||
text-align: center; | ||
margin: 100px auto 0px; | ||
width: 850px; | ||
box-shadow: 5px 5px 5px grey; | ||
-moz-box-shadow: 5px 5px 5px grey; | ||
-webkit-box-shadow: 5px 5px 5px grey; | ||
color: white; | ||
background-color: #338D0C; | ||
} | ||
|
||
#bp_down h1 { | ||
font-size: 250%; | ||
} | ||
|
||
#bp_down p { | ||
font-size: 150%; | ||
margin: .5em 0; | ||
} | ||
|
||
#bp_down a { | ||
color: lightBlue; | ||
} | ||
|
||
#logo { | ||
background: url("/maintenance/logo_background.jpg") repeat; | ||
height: 43px; | ||
width: 100%; | ||
margin-bottom: 50px; | ||
} | ||
|
||
#down_text { | ||
padding: 0 100px 100px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="bp_down"> | ||
<div id="logo"> | ||
<img src="/maintenance/nav_logo.jpg"> | ||
</div> | ||
<div id="down_text"> | ||
<h1>BioPortal is currently down for maintenance</h1> | ||
<p>BioPortal will resume operation at 5:00pm PDT Friday, May 14. Thank you for your patience.</p> | ||
<p>Please contact <a href="mailto:[email protected]">[email protected]</a> with questions or concerns</p> | ||
</div> | ||
<article> | ||
<h1>We’ll be back soon!</h1> | ||
<div> | ||
<p>Sorry for the inconvenience but we’re performing some maintenance at the moment. If you need to you can always <a href="mailto:[email protected]">contact us</a>, otherwise we’ll be back online shortly!</p> | ||
<p>— The AgroPortal Team</p> | ||
</div> | ||
</body> | ||
|
||
</html> | ||
</article> |