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:
James E. Blair 2019-10-02 14:36:18 -07:00
parent 8f59afeaa7
commit e6496faf40
1 changed files with 3 additions and 2 deletions

View File

@ -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>
&nbsp;<span className="fa fa-external-link"/>
{obj.name}
&nbsp;&nbsp;(<a href={log_url + path + name}>raw</a>
&nbsp;<span className="fa fa-external-link"/>)
</span>
)))