web: render log manifest consistently
Always render the raw link as "(raw)" and reserve the file/dir name for the internal link. If there is no internal link, render it as normal text. This may help folks avoid inadvertently leaving the Zuul web ui and ending up on the log server due to the subtle difference in the links. Change-Id: Ic161a6f9b2d3aa0c3c82198aa359c540f859d284
This commit is contained in:
parent
8f59afeaa7
commit
e6496faf40
|
@ -45,8 +45,9 @@ class Manifest extends React.Component {
|
|||
</span>),
|
||||
(log_url, path, name, obj) => (
|
||||
<span>
|
||||
<a href={log_url + path + name}>{obj.name}</a>
|
||||
<span className="fa fa-external-link"/>
|
||||
{obj.name}
|
||||
(<a href={log_url + path + name}>raw</a>
|
||||
<span className="fa fa-external-link"/>)
|
||||
</span>
|
||||
)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue