Skip to content

Commit d4856b2

Browse files
committed
OpenConceptLab/ocl_issues#2288 | fixing URLs | added indicators
1 parent 2cd1f21 commit d4856b2

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

src/components/collections/Versions.jsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,17 @@ const VersionList = ({
345345
<a href={'#' + (version.version_url || version.url)}><b>{version.version}</b></a>
346346
{version.autoexpand ? (
347347
<Tooltip arrow title="Auto-Expand" placement="right">
348-
<ExpansionIcon sx={{ color: GREEN, ml: 2, width: 16 }} />
348+
<ExpansionIcon sx={{ color: GREEN, ml: 1, width: 16 }} />
349+
</Tooltip>
350+
) : null}
351+
{version.released ? (
352+
<Tooltip arrow title="Released" placement="right">
353+
<ReleaseIcon color='primary' sx={{ ml: 1, width: 16 }} />
354+
</Tooltip>
355+
) : null}
356+
{version.is_processing ? (
357+
<Tooltip arrow title="Processing" placement="right">
358+
<ProcessingIcon color='warning' sx={{ ml: 1, width: 16 }} />
349359
</Tooltip>
350360
) : null}
351361
</Box>
@@ -377,7 +387,7 @@ const VersionList = ({
377387
tags.map(tag => {
378388
return (
379389
<span key={tag.id} style={{...tag.style}}>
380-
<a href={isFunction(tag.hrefAttr) ? tag.hrefAttr(version) : get(version, tag.hrefAttr)} style={{display: 'flex', alignItems: 'center', fontSize: '12px'}}>
390+
<a href={'#' + (isFunction(tag.hrefAttr) ? tag.hrefAttr(version) : get(version, tag.hrefAttr))} style={{display: 'flex', alignItems: 'center', fontSize: '12px'}}>
381391
{tag.icon}
382392
<span style={{marginLeft: '4px', marginTop: '2px'}}>
383393
{get(version, tag.value)?.toLocaleString() || '-'}

src/components/search/ResultConstants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export const TAGS = {
220220
value: 'summary.active_references',
221221
label: 'References',
222222
icon: <i className="icon-link" style={{ fontSize: "small", ...TAG_ICON_STYLES }} />,
223-
hrefAttr: (item) => item.version_url || item.url + 'references/',
223+
hrefAttr: (item) => (item.version_url || item.url) + 'references/',
224224
style: {marginTop: '8px', marginBottom: '5px'}
225225
},
226226
{

0 commit comments

Comments
 (0)