Skip to content

Commit

Permalink
Fixed block-explorer links in frontend.
Browse files Browse the repository at this point in the history
Added more coin icons.
  • Loading branch information
bonesoul committed Sep 24, 2014
1 parent 9e3e73a commit 2324a5a
Show file tree
Hide file tree
Showing 23 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/CoiniumServ/Coin/Config/BlockExplorerOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class BlockExplorerOptions:IBlockExplorerOptions
{
public string Block { get; private set; }

public string Transaction { get; private set; }
public string Tx { get; private set; }

public string Address { get; private set; }

Expand All @@ -41,7 +41,7 @@ public BlockExplorerOptions(dynamic config)
try
{
Block = string.IsNullOrEmpty(config.block) ? "https://altexplorer.net/block/" : config.block;
Transaction = string.IsNullOrEmpty(config.tx) ? "https://altexplorer.net/tx/" : config.tx;
Tx = string.IsNullOrEmpty(config.tx) ? "https://altexplorer.net/tx/" : config.tx;
Address = string.IsNullOrEmpty(config.address) ? "https://altexplorer.net/address/" : config.address;
Valid = true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CoiniumServ/Coin/Config/IBlockExplorerOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public interface IBlockExplorerOptions:IConfig
{
string Block { get; }

string Transaction { get; }
string Tx { get; }

string Address { get; }
}
Expand Down
3 changes: 3 additions & 0 deletions src/CoiniumServ/CoiniumServ.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,9 @@
</ItemGroup>
<ItemGroup>
<Content Include="Coinium.ico" />
<None Include="web\default\Content\img\coins\icon\PPC.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="web\default\Content\img\coins\icon\CAT.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/CoiniumServ/web/default/views/pool/block.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
break;
}
</td>
<td class="hidden-xs"><a href="@Model.Coin.BlockExplorer/block/@Model.Block.BlockHash" target="_blank">@Model.Block.BlockHash.Substring(0, 10)</a></td>
<td class="hidden-xs"><a href="@Model.Coin.BlockExplorer/tx/@Model.Block.TransactionHash" target="_blank">@Model.Block.TransactionHash.Substring(0, 10)</a></td>
<td class="hidden-xs"><a href="@Model.Coin.BlockExplorer.Block@Model.Block.BlockHash" target="_blank">@Model.Block.BlockHash.Substring(0, 10)</a></td>
<td class="hidden-xs"><a href="@Model.Coin.BlockExplorer.Tx@Model.Block.TransactionHash" target="_blank">@Model.Block.TransactionHash.Substring(0, 10)</a></td>
<td>@Model.Block.Amount</td>
<td><div class="label @(Model.Block.Accounted ?"bg-green":"bg-red")">@(Model.Block.Accounted ? "Yes" : "No")</div></td>
<td>@Model.Block.CreatedAt</td>
Expand Down
4 changes: 2 additions & 2 deletions src/CoiniumServ/web/default/views/pool/blocks.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
break;
}
</td>
<td><a href="@Model.Coin.BlockExplorer/block/@block.BlockHash" target="_blank">@block.BlockHash.Substring(0, 10)</a></td>
<td><a href="@Model.Coin.BlockExplorer/tx/@block.TransactionHash" target="_blank">@block.TransactionHash.Substring(0, 10)</a></td>
<td><a href="@Model.Coin.BlockExplorer.Block@block.BlockHash" target="_blank">@block.BlockHash.Substring(0, 10)</a></td>
<td><a href="@Model.Coin.BlockExplorer.Tx@block.TransactionHash" target="_blank">@block.TransactionHash.Substring(0, 10)</a></td>
<td>@block.Amount</td>
<td><div class="label @(block.Accounted ?"bg-green":"bg-red")">@(block.Accounted ? "Yes" : "No")</div></td>
<td>@block.CreatedAt</td>
Expand Down

0 comments on commit 2324a5a

Please sign in to comment.