-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed hybrid-storage transaction table TxId column as TxHash.
Renamed transaction.cshtml view as paymentdetails.cshtml. Done implementing /tx/id view.
- Loading branch information
bonesoul
committed
Oct 1, 2014
1 parent
505a8ad
commit 5bdb963
Showing
15 changed files
with
193 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/CoiniumServ/Server/Web/Models/Pool/PaymentDetailsModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#region License | ||
// | ||
// CoiniumServ - Crypto Currency Mining Pool Server Software | ||
// Copyright (C) 2013 - 2014, CoiniumServ Project - http://www.coinium.org | ||
// http://www.coiniumserv.com - https://github.com/CoiniumServ/CoiniumServ | ||
// | ||
// This software is dual-licensed: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// For the terms of this license, see licenses/gpl_v3.txt. | ||
// | ||
// Alternatively, you can license this software under a commercial | ||
// license or white-label it as set out in licenses/commercial.txt. | ||
// | ||
#endregion | ||
|
||
using CoiniumServ.Accounts; | ||
using CoiniumServ.Coin.Config; | ||
using CoiniumServ.Payments; | ||
using CoiniumServ.Persistance.Blocks; | ||
|
||
namespace CoiniumServ.Server.Web.Models.Pool | ||
{ | ||
public class PaymentDetailsModel | ||
{ | ||
public IPaymentDetails Details { get; set; } | ||
|
||
public IAccount Account { get; set; } | ||
|
||
public IPersistedBlock Block { get; set; } | ||
|
||
public ICoinConfig Coin { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
src/CoiniumServ/web/default/views/pool/paymentdetails.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
@using CoiniumServ.Persistance.Blocks | ||
@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<CoiniumServ.Server.Web.Models.Pool.PaymentDetailsModel> | ||
@{ Layout = "layout/main.cshtml"; } | ||
|
||
<div class="row"> | ||
<div class="col-md-6"> | ||
<div class="box box-solid box-warning"> | ||
<div class="box-header"> | ||
<h3 class="box-title">Block Details</h3> | ||
</div> | ||
<div class="box-body no-padding"> | ||
<div class="list-group"> | ||
<div class="list-group-item" title="Height of the block"> | ||
<div class="row"> | ||
<div class="col-xs-6"><i class="fa fa-cube"></i> Height</div> | ||
<div class="col-xs-6 text-right"><a href="/pool/@Model.Coin.Symbol/block/@Model.Block.Height">@Model.Block.Height</a></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="box box-solid box-success"> | ||
<div class="box-header"> | ||
<h3 class="box-title">Account Details</h3> | ||
</div> | ||
<div class="box-body no-padding"> | ||
<div class="list-group"> | ||
<div class="list-group-item" title="Payment address for the account"> | ||
<div class="row"> | ||
<div class="col-xs-6"><i class="fa fa-dollar"></i> Address</div> | ||
<div class="col-xs-6 text-right"><a href="/pool/@Model.Coin.Symbol/account/address/@Model.Account.Address">@Model.Account.Address</a></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-md-6"> | ||
<div class="box box-solid box-danger"> | ||
<div class="box-header"> | ||
<h3 class="box-title">Payment Details</h3> | ||
</div> | ||
<div class="box-body no-padding"> | ||
<div class="list-group"> | ||
<div class="list-group-item" title="The id of the payment"> | ||
<div class="row"> | ||
<div class="col-xs-6"><i class="fa fa-dollar"></i> Id</div> | ||
<div class="col-xs-6 text-right"><a href="/pool/@Model.Coin.Symbol/payment/@Model.Details.PaymentId">@Model.Details.PaymentId</a></div> | ||
</div> | ||
</div> | ||
<div class="list-group-item" title="The amount of the payment"> | ||
<div class="row"> | ||
<div class="col-xs-6"><i class="fa fa-dollar"></i> Amount</div> | ||
<div class="col-xs-6 text-right">@Model.Details.Amount @Model.Coin.Symbol</div> | ||
</div> | ||
</div> | ||
<div class="list-group-item" title="Is the payment fullfilled?"> | ||
<div class="row"> | ||
<div class="col-xs-6"><i class="fa fa-dollar"></i> Fullfilled</div> | ||
<div class="col-xs-6 text-right"><div class="label @(Model.Details.Completed ?"bg-green":"bg-red")">@(Model.Details.Completed ? "Yes" : "No")</div></div> | ||
</div> | ||
</div> | ||
<div class="list-group-item" title="Date of the payment"> | ||
<div class="row"> | ||
<div class="col-xs-6"><i class="fa fa-dollar"></i> Date</div> | ||
<div class="col-xs-6 text-right">@Model.Details.PaymentDate</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-6"> | ||
<div class="box box-solid box-primary"> | ||
<div class="box-header"> | ||
<h3 class="box-title">Transaction Details</h3> | ||
</div> | ||
<div class="box-body no-padding"> | ||
<div class="list-group"> | ||
<div class="list-group-item" title="The id of the payment"> | ||
<div class="row"> | ||
<div class="col-xs-6"><i class="fa fa-dollar"></i> Id</div> | ||
<div class="col-xs-6 text-right"><a href="/pool/@Model.Coin.Symbol/tx/@Model.Details.TransactionId">@Model.Details.TransactionId</a></div> | ||
</div> | ||
</div> | ||
<div class="list-group-item" title="The amount of the sent coins"> | ||
<div class="row"> | ||
<div class="col-xs-6"><i class="fa fa-dollar"></i> Amount</div> | ||
<div class="col-xs-6 text-right">@Model.Details.SentAmount @Model.Details.Currency</div> | ||
</div> | ||
</div> | ||
<div class="list-group-item" title="The hash of the transaction"> | ||
<div class="row"> | ||
<div class="col-xs-6"><i class="fa fa-dollar"></i> Hash</div> | ||
<div class="col-xs-6 text-right"><a href="@Model.Coin.BlockExplorer.Tx@Model.Details.TxHash" target="_blank">@Model.Details.TxHash.Substring(0, 10)</a></div> | ||
</div> | ||
</div> | ||
<div class="list-group-item" title="Date of the transaction"> | ||
<div class="row"> | ||
<div class="col-xs-6"><i class="fa fa-dollar"></i> Date</div> | ||
<div class="col-xs-6 text-right">@Model.Details.TransactionDate</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file was deleted.
Oops, something went wrong.