Skip to content

Commit

Permalink
Open menu links in new window
Browse files Browse the repository at this point in the history
  • Loading branch information
git-commit committed Sep 23, 2024
1 parent 6d9b599 commit 861a285
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion napoli-pain/src/components/order_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl Component for OrderDetails {
<div class="my-8">
<Link<Route> to={Route::Home} classes="btn"> {"< Back"} </Link<Route>>
<h1 class="mt-8">{"Order #"}{id}</h1>
<p>{"Menu URL: "}<a class="link" href={menu_url}>{menu_url_text}</a></p>
<p>{"Menu URL: "}<a class="link" href={menu_url} target="_blank" rel="noopener noreferrer">{menu_url_text}</a></p>

<ul class="mt-4">
{ order_entries }
Expand Down
2 changes: 1 addition & 1 deletion napoli-pain/src/components/order_list/order_list_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Component for OrderListItem {
</Link<Route>>
</td></tr>
<tr><td class={left_classes}>{"Order Number"}</td><td>{o.id}</td></tr>
<tr><td class={left_classes}>{"Menu URL"}</td><td><a class="link" href={ o.menu_url.clone() }>{ o.menu_url.clone() }</a></td></tr>
<tr><td class={left_classes}>{"Menu URL"}</td><td><a class="link" target="_blank" rel="noopener noreferrer" href={ o.menu_url.clone() }>{ o.menu_url.clone() }</a></td></tr>
<tr><td class={left_classes}>{"# of entries"}</td><td>{o.entries.len()}</td></tr>
</table>
}
Expand Down

0 comments on commit 861a285

Please sign in to comment.