Skip to content

Commit

Permalink
_QRCodeWindow partial view
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Sep 29, 2023
1 parent cf4d6b3 commit e549e1b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
24 changes: 1 addition & 23 deletions src/Moonglade.Web/Pages/_PostActions.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,4 @@
</div>
</div>

<div class="modal fade" id="qrcode-window" tabindex="-1" role="dialog" aria-labelledby="qrcodewindowLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<div class="modal-title" id="qrcodewindowLabel">@Model.Title</div>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
</button>
</div>
<div class="modal-body">
<div class="text-center">
<p class="text-center">
@SharedLocalizer["Scan QR Code on your phone"]
</p>
<canvas class="post-qrcode">
</canvas>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-accent" data-bs-dismiss="modal">@SharedLocalizer["Close"]</button>
</div>
</div>
</div>
</div>
<partial name="_QRCodeWindow" />
23 changes: 23 additions & 0 deletions src/Moonglade.Web/Pages/_QRCodeWindow.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<div class="modal fade" id="qrcode-window" tabindex="-1" role="dialog" aria-labelledby="qrcodewindowLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<div class="modal-title" id="qrcodewindowLabel">@Model.Title</div>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
</button>
</div>
<div class="modal-body">
<div class="text-center">
<p class="text-center">
@SharedLocalizer["Scan QR Code on your phone"]
</p>
<canvas class="post-qrcode">
</canvas>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-accent" data-bs-dismiss="modal">@SharedLocalizer["Close"]</button>
</div>
</div>
</div>
</div>

0 comments on commit e549e1b

Please sign in to comment.