Verified Commit 794c7f0e authored by Camil Staps's avatar Camil Staps 🚀

Add a link to usages on the frontend

parent 47444e83
Subproject commit 412bf462bf7e8f0f95a0be6b861fb3f2f5904b57
Subproject commit 110bc1fd6f897002a8e486247d45349d0ddc26bf
......@@ -69,7 +69,7 @@ toRequestCacheKey db r
{ c_unify = snd <$>
prepare_unification True alwaysUnique allsyns <$>
(parseType o fromString =<< r.unify)
, c_name = toLowerCase <$> r.name
, c_name = toLowerCase <$> r.Request.name
, c_className = r.className
, c_typeName = r.typeName
, c_using = r.using
......
......@@ -346,7 +346,8 @@ function getResults(str, libs, include_builtins, include_core, include_apps, pag
var basicText = basic['library'] + ': ' +
basic['modul'] + ' (' +
'<a href="' + dclUrl + '" target="_blank">dcl' + dclLine + '</a>; ' +
'<a href="' + iclUrl + '" target="_blank">icl' + iclLine + '</a>)';
'<a href="' + iclUrl + '" target="_blank">icl' + iclLine + '</a>) ' +
'<a class="usages-link" href="#using ' + basic['name'] + '" title="Find where this is used">usages &rarr;</a>';
if ('builtin' in basic && basic['builtin'])
basicText = 'Clean core. The actual implementation may differ.';
......
......@@ -171,6 +171,12 @@ div.visible {
padding: .2em .2em .2em 1em;
}
.result-basic .usages-link {
float: right;
margin-right: 1em;
font-size: 85%;
}
.result-extra {
background-color: #f4f4f4;
font-size: 85%;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment