File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
lib/algora_web/components Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1288,12 +1288,21 @@ defmodule AlgoraWeb.CoreComponents do
1288
1288
attr :navigate , :string , default: nil
1289
1289
attr :patch , :string , default: nil
1290
1290
attr :replace , :boolean , default: false
1291
+ attr :target , :string , default: nil
1292
+ attr :rel , :string , default: nil
1291
1293
slot :inner_block
1292
1294
1293
1295
def maybe_link ( assigns ) do
1294
1296
~H"""
1295
1297
<%= if link? ( assigns ) do %>
1296
- < . link href = { @ href } navigate = { @ navigate } patch = { @ patch } replace = { @ replace } >
1298
+ < . link
1299
+ href = { @ href }
1300
+ navigate = { @ navigate }
1301
+ patch = { @ patch }
1302
+ replace = { @ replace }
1303
+ target = { @ target }
1304
+ rel = { @ rel }
1305
+ >
1297
1306
{ render_slot ( @ inner_block ) }
1298
1307
</ . link >
1299
1308
<% else %>
You can’t perform that action at this time.
0 commit comments