|
|
|
<div id="header">
|
|
|
|
<div class="header-inner">
|
|
|
|
<h1><a href="/">EntryDNS</a></h1>
|
|
|
|
<div id="main-navigation">
|
|
|
|
<ul class="wat-cf">
|
|
|
|
<% if user_signed_in? %>
|
|
|
|
<li><%#= link_to('Dashboard', dashboard_path, :data => {:pjax => '#main'}) %></li>
|
|
|
|
<li>
|
|
|
|
<%= link_to domains_path, :data => {:pjax => '#main'} do %>
|
|
|
|
<i class="icon white th-list"></i> My Domains
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<%= link_to hosts_path, :data => {:pjax => '#main'} do %>
|
|
|
|
<i class="icon white th"></i> Dynamic Hosts
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<li><%= link_to('Home', root_path, :data => {:pjax => '#main'}) %></li>
|
|
|
|
<li><%= link_to('About', page_path('about'), :data => {:pjax => '#main'}) %></li>
|
|
|
|
<li><%= link_to('Team', page_path('team'), :data => {:pjax => '#main'}) %></li>
|
|
|
|
<li><%= link_to('Contact', page_path('contact'), :data => {:pjax => '#main'}) %></li>
|
|
|
|
<li><%= link_to('Help & Support', page_path('help'), :data => {:pjax => '#main'}) %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="user-navigation">
|
|
|
|
<ul class="wat-cf">
|
|
|
|
<li>
|
|
|
|
<%= link_to 'Tweet', "https://twitter.com/share", :class => "twitter-share-button",
|
|
|
|
:data => {
|
|
|
|
:url => root_url,
|
|
|
|
:text => "EntryDNS a nice free DNS service",
|
|
|
|
:count => "horizontal",
|
|
|
|
:via => "entrydns",
|
|
|
|
:related => "_clyfe:vaijab"
|
|
|
|
} %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<%= link_to(Settings.news_link, :rel => 'tooltip', :title => Settings.news_link) do %>
|
|
|
|
<i class="icon white share-alt"></i> News
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<%= link_to(page_path('donate'), :class => 'highlight', :data => {:pjax => '#main'}) do %>
|
|
|
|
<i class="icon white heart"></i> Donate
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<% if user_signed_in? %>
|
|
|
|
<li>
|
|
|
|
<%= link_to(page_path('help'), :data => {:pjax => '#main'}) do %>
|
|
|
|
<i class="icon white question-sign"></i> Help & Support
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<%= link_to(edit_user_registration_path, :rel => 'tooltip',
|
|
|
|
:title => "IP: #{client_remote_ip}",:data => {:pjax => '#main'}) do %>
|
|
|
|
<i class="icon white user"></i> <%= current_user.email %>
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<%= link_to(destroy_user_session_path, :method => :delete) do %>
|
|
|
|
<i class="icon white off"></i> Sign out
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<li>
|
|
|
|
<%= link_to(new_user_registration_path, :data => {:pjax => '#main'}) do %>
|
|
|
|
<i class="icon white arrow-up"></i> Sign up
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<%= link_to(new_user_session_path, :data => {:pjax => '#main'}) do %>
|
|
|
|
<i class="icon white arrow-right"></i> Sign in
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="main-navigation">
|
|
|
|
<ul class="wat-cf"></ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|