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

Registry badges update #639

Merged
merged 9 commits into from
Jul 6, 2021
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
2 changes: 1 addition & 1 deletion _includes/page-metadata.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{%- if page.tags != null %}
<div class="meta-line p-3 mt-3">
<b>Pages that link to this page: </b>
<b>Related pages: </b>
{%- for tag in page.tags | sort %}
{%- assign related_page = site.pages | where:"page_tag",tag | first %}
<a href="{{ related_page.url }}" class="meta-obj"
Expand Down
24 changes: 14 additions & 10 deletions _includes/toollist.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
The tag "{{ include.tag }}" has not yet related tools or resources.
{%- else%}
<a class="visually-hidden-focusable" href='#skip-tool-table'>Skip tool table</a>
<table id="tooltable" class="display">
<table id="tooltable" class="table display mb-5 mt-4">
<thead>
<tr>
<th>Tool or resource {%- if include.tag or include.tag2 -%}
Expand All @@ -20,7 +20,11 @@
</th>
<th>Description</th>
<th>Related pages</th>
<th>Registry</th>
<th>Registry {%- if include.tag or include.tag2 -%}
<a data-bs-toggle="tooltip" data-bs-original-title="Links to related information in ELIXIR registries: related policies and standards in FAIRsharing, scientific and technical descriptions of the resource in bio.tools, and related training in TeSS.">
<i class="fas fa-info-circle" style="color:var(--main-text-color);"></i>
</a>{%- endif %}
</th>
</tr>
</thead>
<tbody>
Expand All @@ -45,23 +49,23 @@
<td style="text-align: center; vertical-align: middle;">
{%- if tool.registry.biotools %}
<a data-bs-toggle="tooltip"
data-bs-original-title="Bio.tools ID: {{tool.registry.biotools}}" href="https://bio.tools/{{tool.registry.biotools}}"
><img style="background-color: orange;" class="registry_logo" src="{{ 'assets/img/bio.tools.svg' | relative_url }}" alt="bio.tools logo"/></a>
data-bs-original-title="Find a scientific and technical description of the resource" href="https://bio.tools/{{tool.registry.biotools}}"
><span class="badge registry_badge">bio.tools</span></a>
{%- endif %}
{%- if tool.registry.fairsharing %}
<a data-bs-toggle="tooltip"
data-bs-original-title="FAIRsharing ID: {{tool.registry.fairsharing}}" href="https://fairsharing.org/FAIRsharing.{{tool.registry.fairsharing}}"
><img style="background-color: #ECF0F1;" class="registry_logo" src="{{ 'assets/img/FAIRsharing-small.svg' | relative_url }}" alt="FAIRsharing logo"/></a>
data-bs-original-title="Find related policies and standards" href="https://fairsharing.org/FAIRsharing.{{tool.registry.fairsharing}}"
><span class="badge registry_badge">FAIRsharing</span></a>
{%- endif %}
{%- if tool.registry.fairsharing-coll %}
<a data-bs-toggle="tooltip"
data-bs-original-title="FAIRsharing ID: {{tool.registry.fairsharing-coll}}" href="https://fairsharing.org/{{tool.registry.fairsharing-coll}}"
><img style="background-color: #ECF0F1;" class="registry_logo" src="{{ 'assets/img/FAIRsharing-small.svg' | relative_url }}" alt="FAIRsharing logo"/></a>
data-bs-original-title="Find related policies and standards" href="https://fairsharing.org/{{tool.registry.fairsharing-coll}}"
><span class="badge registry_badge">FAIRsharing</span></a>
{%- endif %}
{%- if tool.registry.tess %}
<a data-bs-toggle="tooltip"
data-bs-original-title="TeSS: {{tool.registry.tess}}" href="https://tess.elixir-europe.org/search?q={{tool.registry.tess}}"
><img style="background-color: #f47d20;" class="registry_logo" src="{{ 'assets/img/tess_logo.svg' | relative_url }}" alt="TeSS logo"/></a>
data-bs-original-title="Find training for this resource" href="https://tess.elixir-europe.org/search?q={{tool.registry.tess}}"
><span class="badge registry_badge">TeSS</span></a>
{%- endif %}
</td>
</tr>
Expand Down
71 changes: 39 additions & 32 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ pre code {
position: relative;
z-index: 2;
}

.search .fa-search {
position: absolute;
top: 12px;
Expand All @@ -213,7 +214,7 @@ pre code {
}

@media (max-width: 992px) {
.search-results{
.search-results {
width: 100%;
}
}
Expand Down Expand Up @@ -428,27 +429,7 @@ pre code {
list-style: circle outside;
}

/*-----Table properties-----*/

table {
display: block;
overflow-x: auto;
overflow-y: hidden;
}

table, .dataTables_wrapper {
margin: 40px 0 20px;
}

table>tbody>tr>th, table>thead>tr>td, table>tbody>tr>td {
padding: 8px 8px 8px 0px;
line-height: 1.42857143;
border-top: 1px solid var(--light-grey);
}

table>thead>tr>th {
border-bottom: 2px solid var(--light-grey);
}
/* ---- Theme Badges-------- */

.default-badge {
font-weight: inherit;
Expand All @@ -461,20 +442,46 @@ table>thead>tr>th {
background-color: var(--primary-theme-color);
}

/* name column bigger */
/*-----General table properties-----*/

.table {
display: block;
overflow-x: auto;
overflow-y: hidden;
border-color: var(--light-grey);
}

.table>:not(:last-child)>:last-child>* {
border-bottom-color: inherit;
}

/* Name and description column improvements */

#tooltable tr th:nth-child(1) {
width: 25%;
}

#tooltable tr th:nth-child(2) {
width: 40%;
}

#tooltable td:nth-child(2) {
font-size: .9em
}

#tooltable td:nth-child(1) a {
font-weight: bold;
}

/*-----Registries in tool table------*/

main img.registry_logo {
max-height: 40px;
max-width: 40px;
margin: 2px;
padding: 5px;
border-radius: 4px;
.registry_badge {
background-color: var(--secondary-theme-color);
color: var(--white-text);
}

.registry_badge:hover {
background-color: var(--primary-theme-color);
}

/*-----Footer-----*/
Expand Down Expand Up @@ -513,6 +520,7 @@ footer .company-logo {
}

/*-----MetaData section -----*/

.meta-line {
background-color: var(--light-grey);
border-radius: 4px;
Expand Down Expand Up @@ -599,7 +607,6 @@ h2.card-title {
float: right;
width: 15px;
text-align: center;
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
Expand All @@ -613,7 +620,6 @@ h2.card-title {
float: right;
width: 15px;
text-align: center;
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
Expand Down Expand Up @@ -753,6 +759,7 @@ h2.card-title {
}

/*--------------Custom classes--------------*/

/* ---------------------------------------- */

/* RDM wheel in sidebar */
Expand Down Expand Up @@ -864,4 +871,4 @@ li.upcoming-event, .events {
padding: 11px;
border-radius: 4px;
margin-top: .5rem;
}
}
2 changes: 1 addition & 1 deletion pages/all_tools_and_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ toc: false
custom-editme: _data/main_tool_and_resource_list.csv
---

This is the main tool and resource list of our website. This is a curated list which means that not all tools or resources that exist for a certain topic are listed here. This is mainly because we do not intend to be a registry. In most cases you will only find back the tools or resources that are mentioned in the different pages. Most pages will show a filtered list of this main table at the end of the page. If you see a missing link with one of the registries or a mistake, please open an [issue](https://github.com/elixir-europe/rdmkit/issues) or check our [how to add a tool or resource guide](tool_resource_update).
This is the main tool and resource list of our website. This is a curated list which means that not all tools or resources that exist for a certain topic are listed here. This is mainly because we do not intend to be a registry. In most cases you will only find back the tools or resources that are mentioned in the different pages. Most pages will show a filtered list of this main table at the end of the page. We link to tools and resources to related information in ELIXIR registries: related policies and standards in FAIRsharing, scientific and technical descriptions of the resource in bio.tools, and related training in TeSS. If you see a missing link with one of the registries or a mistake, please open an [issue](https://github.com/elixir-europe/rdmkit/issues) or check our [how to add a tool or resource guide](tool_resource_update).


{% include toollist.html %}