Skip to content

Commit

Permalink
Removed social config & icons - as it's pretty easy to implement manu…
Browse files Browse the repository at this point in the history
…ally by just editing the web template. Fixes #572.
  • Loading branch information
bonesoul committed Oct 15, 2014
1 parent 4c49cc1 commit a5ca4e8
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 139 deletions.
2 changes: 0 additions & 2 deletions src/CoiniumServ/CoiniumServ.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
<Compile Include="Pools\IBlockRepository.cs" />
<Compile Include="Payments\IPaymentRepository.cs" />
<Compile Include="Payments\PaymentRepository.cs" />
<Compile Include="Server\Web\Config\ISocialConfig.cs" />
<Compile Include="Server\Web\Models\ApiModel.cs" />
<Compile Include="Pools\INetworkInfo.cs" />
<Compile Include="Pools\IPoolConfig.cs" />
Expand All @@ -307,7 +306,6 @@
<Compile Include="Server\Web\Models\Pool\PoolModel.cs" />
<Compile Include="Server\Web\Modules\HelpModule.cs" />
<Compile Include="Server\Web\Modules\PoolsModule.cs" />
<Compile Include="Server\Web\Config\SocialConfig.cs" />
<Compile Include="Statistics\IStatisticsManager.cs" />
<Compile Include="Statistics\StatisticsManager.cs" />
<Compile Include="Utils\Repository\IRepository.cs" />
Expand Down
40 changes: 0 additions & 40 deletions src/CoiniumServ/Server/Web/Config/ISocialConfig.cs

This file was deleted.

2 changes: 0 additions & 2 deletions src/CoiniumServ/Server/Web/Config/IWebServerConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ public interface IWebServerConfig : IServerConfig
{
string Template { get; }

ISocialConfig Social { get; }

IBackendConfig Backend { get; }
}
}
56 changes: 0 additions & 56 deletions src/CoiniumServ/Server/Web/Config/SocialConfig.cs

This file was deleted.

2 changes: 0 additions & 2 deletions src/CoiniumServ/Server/Web/Config/WebServerConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public class WebServerConfig : IWebServerConfig
public int Port { get; private set; }

public string Template { get; private set; }
public ISocialConfig Social { get; private set; }

public IBackendConfig Backend { get; private set; }

Expand All @@ -50,7 +49,6 @@ public WebServerConfig(dynamic config)
BindInterface = string.IsNullOrEmpty(config.bind) ? "localhost" : config.bind;
Port = config.port == 0 ? 80 : config.port;
Template = string.IsNullOrEmpty(config.template) ? "default" : config.template;
Social = new SocialConfig(config.social);
Backend = new BackendConfig(config.backend);
Valid = true;
}
Expand Down
5 changes: 0 additions & 5 deletions src/CoiniumServ/Server/Web/NancyBootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ protected override void ApplicationStartup(TinyIoCContainer container, IPipeline
ctx.ViewBag.Pools = _poolManager;
ctx.ViewBag.LastUpdate = _statisticsManager.LastUpdate.ToString("HH:mm:ss tt zz"); // last statistics update.
ctx.ViewBag.Rss = _configManager.WebServerConfig.Social.Rss;
ctx.ViewBag.Twitter = _configManager.WebServerConfig.Social.Twitter;
ctx.ViewBag.Facebook = _configManager.WebServerConfig.Social.Facebook;
ctx.ViewBag.GooglePlus = _configManager.WebServerConfig.Social.GooglePlus;
ctx.ViewBag.Youtube = _configManager.WebServerConfig.Social.Youtube;
};

#if DEBUG
Expand Down
7 changes: 0 additions & 7 deletions src/CoiniumServ/config/config-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@
"bind": "",
"port": 80,
"template": "default",
"social": {
"rss": "http://bit.ly/1qheogE",
"twitter": "https://twitter.com/coinium",
"facebook": "https://www.facebook.com/pages/Coiniumorg/639179226128343",
"googleplus": "https://plus.google.com/+CoiniumOrgNetwork/about",
"youtube": "http://www.youtube.com/user/CoiniumNetwork/"
},
"backend": {
"metrics": {
"enabled": false
Expand Down
25 changes: 0 additions & 25 deletions src/CoiniumServ/web/default/views/layout/navbar.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,6 @@
<li>
<iframe style="width: 85px; height: 20px; margin-top: 15px;" src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FCoiniumorg%2F639179226128343&amp;width&amp;layout=button_count&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=21" scrolling="no" frameborder="0" allowtransparency="true"></iframe>
</li>
@if (!string.IsNullOrEmpty(ViewBag.Rss))
{
@:
<li><a href="@ViewBag.Rss" target="_blank"><i class="fa fa-rss"></i></a></li>
}
@if (!string.IsNullOrEmpty(ViewBag.Twitter))
{
@:
<li><a href="@ViewBag.Twitter" target="_blank"><i class="fa fa-twitter"></i></a></li>
}
@if (!string.IsNullOrEmpty(ViewBag.Facebook))
{
@:
<li><a href="@ViewBag.Facebook" target="_blank"><i class="fa fa-facebook"></i></a></li>
}
@if (!string.IsNullOrEmpty(ViewBag.GooglePlus))
{
@:
<li><a href="@ViewBag.GooglePlus" target="_blank"><i class="fa fa-google-plus"></i></a></li>
}
@if (!string.IsNullOrEmpty(ViewBag.Youtube))
{
@:
<li><a href="@ViewBag.Youtube" target="_blank"><i class="fa fa-youtube"></i></a></li>
}
</ul>
</div>
</nav>
Expand Down

0 comments on commit a5ca4e8

Please sign in to comment.