Add anchors for tags and operations
This commit is contained in:
@@ -156,7 +156,12 @@ export default class Operation extends PureComponent {
|
|||||||
<div className={`opblock-summary opblock-summary-${method}`} onClick={this.toggleShown} >
|
<div className={`opblock-summary opblock-summary-${method}`} onClick={this.toggleShown} >
|
||||||
<span className="opblock-summary-method">{method.toUpperCase()}</span>
|
<span className="opblock-summary-method">{method.toUpperCase()}</span>
|
||||||
<span className={ deprecated ? "opblock-summary-path__deprecated" : "opblock-summary-path" } >
|
<span className={ deprecated ? "opblock-summary-path__deprecated" : "opblock-summary-path" } >
|
||||||
|
<a
|
||||||
|
className="nostyle"
|
||||||
|
onClick={(e) => e.preventDefault()}
|
||||||
|
href={`#/${isShownKey[1]}/${isShownKey[2]}`} >
|
||||||
<span>{path}</span>
|
<span>{path}</span>
|
||||||
|
</a>
|
||||||
<JumpToPath path={jumpToKey} />
|
<JumpToPath path={jumpToKey} />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,12 @@ export default class Operations extends React.Component {
|
|||||||
onClick={() => layoutActions.show(isShownKey, !showTag)}
|
onClick={() => layoutActions.show(isShownKey, !showTag)}
|
||||||
className={!tagDescription ? "opblock-tag no-desc" : "opblock-tag" }
|
className={!tagDescription ? "opblock-tag no-desc" : "opblock-tag" }
|
||||||
id={isShownKey.join("-")}>
|
id={isShownKey.join("-")}>
|
||||||
|
<a
|
||||||
|
className="nostyle"
|
||||||
|
onClick={(e) => e.preventDefault()}
|
||||||
|
href={`#/${tag}`}>
|
||||||
<span>{tag}</span>
|
<span>{tag}</span>
|
||||||
|
</a>
|
||||||
{ !tagDescription ? null :
|
{ !tagDescription ? null :
|
||||||
<small>
|
<small>
|
||||||
{ tagDescription }
|
{ tagDescription }
|
||||||
|
|||||||
@@ -632,3 +632,16 @@ section
|
|||||||
@include text_headline();
|
@include text_headline();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.nostyle {
|
||||||
|
text-decoration: inherit;
|
||||||
|
color: inherit;
|
||||||
|
cursor: auto;
|
||||||
|
display: inline;
|
||||||
|
|
||||||
|
&:visited {
|
||||||
|
text-decoration: inherit;
|
||||||
|
color: inherit;
|
||||||
|
cursor: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user