8000 Added Investor Link to angor indexer project page by yashop7 · Pull Request #370 · block-core/angor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added Investor Link to angor indexer project page #370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions src/Angor/Client/Pages/View.razor
Original file line number Diff line number Diff line change
Expand Up @@ -298,17 +298,22 @@
</div>

<div class="col-md-4">
<div class="stat-card p-3 rounded-3 border hover-effect h-100">
<div class="d-flex justify-content-between h-100">
<div>
<h6 class="text-muted">Total Investors</h6>
<h4 class="mb-0">@projectStats.TotalInvestors</h4>
</div>
<div class="stat-icon">
<Icon IconName="users" Height="32" Width="32" />
<a href="@investorExplorerLink" target="_blank" rel="noopener noreferrer">
<div class="stat-card p-3 rounded-3 border hover-effect h-100">
<div class="d-flex justify-content-between h-100">
<div>
<h6 class="text-muted">Total Investors</h6>
<h4 class="mb-0">@projectStats.TotalInvestors</h4>
<button class="btn btn-border-success btn-sm mt-2">
Investors <Icon IconName="arrow-right" Height="16" Width="16" />
</button>
</div>
<div class="stat-icon">
<Icon IconName="users" Height="32" Width="32" />
</div>
</div>
</div>
</div>
</a>
</div>

<div class="col-md-4">
Expand Down Expand Up @@ -695,6 +700,7 @@

string myProjectExplorerLink;
string projectExplorerLink;
string investorExplorerLink;

private string NostrNsecSecKey { get; set; } = string.Empty;
private string NostrHexSecKey { get; set; } = string.Empty;
Expand Down Expand Up @@ -850,6 +856,7 @@
if (!string.IsNullOrEmpty(project?.CreationTransactionId))
{
projectExplorerLink = _NetworkService.GetPrimaryExplorer().Url + $"/tx/{project.CreationTransactionId}";
investorExplorerLink = _NetworkService.GetPrimaryExplorer().Url + $"/angor/projects/{project.ProjectInfo.ProjectIdentifier}";
}
else
{
Expand Down
0