}
@@ -1281,11 +1287,18 @@ pub async fn ref_selector(
branches_href: String,
tags_href: String,
) -> Result {
+ // A tag shows a tag icon only when it is the current ref and no branch of that name is.
+ let is_tag = !branches.iter().any(|b| b.current) && tags.iter().any(|t| t.current);
Ok(view! {
-
- (label)
- (current.as_str())
+
+ if is_tag {
+
+ } else {
+
+ }
+ (current.as_str())
+