Skip to content

Commit

Permalink
Make public projects/exps show links too
Browse files Browse the repository at this point in the history
  • Loading branch information
uoa-noel committed Jul 4, 2024
1 parent 019a722 commit 51e2a3b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions assets/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ i.group-icon :hover {
}

.experiments .card-body {
background-color: #E8F6FF;
background-color: #FCFEFF;
}

.experiments .accordion-inner .dataset-list-header {
Expand All @@ -259,7 +259,7 @@ i.group-icon :hover {
}

.projects .card-body {
background-color: #E8F6FF;
background-color: #FCFEFF;
}

.projects .accordion-inner .exp-list-header {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,11 @@ export const PureTypeSchemaList = ({ value: schemaValue, onValueChange, options
return (
<Accordion.Item key={name}>
<Accordion.Header>
{/* <Accordion.Toggle as="button" className="btn btn-link" eventKey={id}> */}
{name} filters
{/* </Accordion.Toggle> */}
</Accordion.Header>
{/* <Accordion.Collapse eventKey={id}> */}
<Accordion.Body>
<SchemaFilterList schema={schema} />
</Accordion.Body>
{/* </Accordion.Collapse> */}
</Accordion.Item>
);
})}
Expand Down
9 changes: 5 additions & 4 deletions tardis/tardis_portal/templates/tardis_portal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ <h3>
<div class="row">
<div class="col-md-8 px-1 pb-1">
<input type="hidden" class="proj-index" value="{{ forloop.counter }}">
<a class="card-title projlink"
href="{% url 'tardis.apps.projects.view_project' proj.id %}">{{ proj.name }}</a>
<span class="card-title projlink">{{ proj.name }}</span>
</div>
<div class="col">
<div class="projectbadges" id="badge-{{proj.id}}"></div>
Expand Down Expand Up @@ -185,6 +184,8 @@ <h3>
</div> {% comment %}class="accordion-inner"{% endcomment %}
</div>
</div>
<a class="btn btn-light mt-3 w-100"
href="{% url 'tardis.apps.projects.view_project' proj.id %}">View Project</a>
</div>
</div> {% comment %}class="card"{% endcomment %}
{% empty %}
Expand All @@ -208,8 +209,7 @@ <h3>
<div class="row">
<div class="col-md-8 px-1 pb-1">
<input type="hidden" class="exp-index" value="{{ forloop.counter }}">
<a class="card-title explink"
href="{% url 'tardis_portal.view_experiment' exp.id %}">{{ exp.title }}</a>
<span class="card-title">{{ exp.title }}</span>
</div>
<div class="col">
<div class="badges" id="badge-{{exp.id}}"></div>
Expand Down Expand Up @@ -248,6 +248,7 @@ <h3>
</div> {% comment %}class="accordion-inner"{% endcomment %}
</div>
</div>
<a class="btn btn-light mt-3 w-100" href="{% url 'tardis_portal.view_experiment' exp.id %}">View Experiment</a>
</div>
</div> {% comment %}class="card"{% endcomment %}
{% empty %}
Expand Down

0 comments on commit 51e2a3b

Please sign in to comment.