Browse Source

records link on empty, marketing, styles etc

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
e6b7b14e0b
  1. 10
      app/assets/stylesheets/marketing.css.scss
  2. 2
      app/assets/stylesheets/overrides.css.erb
  3. 16
      app/views/domains/_list_record_columns.html.erb
  4. 5
      app/views/fragments/_top.html.erb
  5. 2
      app/views/home/_headlines.html.erb
  6. 4
      app/views/home/index.html.erb
  7. 2
      app/views/layouts/application.html.erb
  8. 2
      app/views/layouts/marketing.html.erb

10
app/assets/stylesheets/marketing.css.scss

@ -34,6 +34,10 @@
position: relative;
}
.marketing-duo td {
vertical-align: top;
}
#main.marketing-main {
margin-left: auto;
margin-right: auto;
@ -41,7 +45,11 @@
.block .content .marketing-inner {
padding: 0 30px 30px;
h2 {
font-size: 25px;
}
p {
font-size: 18px;
line-height: 1em;
color: #555;
}
@ -60,7 +68,7 @@
}
li {
font-size: 16px;
font-size: 18px;
}
.action {

2
app/assets/stylesheets/overrides.css.erb

@ -7,7 +7,7 @@
}
#main .block .content .active-scaffold-header h2 {
font-size: 200%;
font-size: 160%;
}
#main .block .content .active-scaffold th a {

16
app/views/domains/_list_record_columns.html.erb

@ -0,0 +1,16 @@
<% columns.each do |column| %>
<% authorized = record.authorized_for?(:crud_type => :read, :column => column.name) -%>
<% column_value = authorized ? get_column_value(record, column) : active_scaffold_config.list.empty_field_text -%>
<% if column.name == :records %>
<td class="<%= column_class(column, column_value, record) %>" >
<% column_value = 'Manage Records (0)' if column_value == '-' %>
<%= authorized ? render_list_column(column_value, column, record) : column_value %>
</td>
<% else %>
<td class="<%= column_class(column, column_value, record) %>" >
<%= authorized ? render_list_column(column_value, column, record) : column_value %>
</td>
<% end %>
<% end -%>

5
app/views/fragments/_top.html.erb

@ -5,13 +5,12 @@
<ul class="wat-cf">
<% if user_signed_in? %>
<li><%= link_to('Dashboard', dashboard_path, :data => {:pjax => '#main'}) %></li>
<li><%= link_to 'Domains', domains_path, :data => {:pjax => '#main'} %></li>
<li><%= link_to('Help & Support', root_path, :data => {:pjax => '#main'}) %></li>
<li><%= link_to 'Manage Domains', domains_path, :data => {:pjax => '#main'} %></li>
<% else %>
<li><%= link_to('Home', root_path, :data => {:pjax => '#main'}) %></li>
<li><%= link_to('About us', root_path, :data => {:pjax => '#main'}) %></li>
<li><%= link_to('Help & Support', root_path, :data => {:pjax => '#main'}) %></li>
<% end %>
<li><%= link_to('Help & Support', root_path, :data => {:pjax => '#main'}) %></li>
</ul>
</div>
<div id="user-navigation">

2
app/views/home/_headlines.html.erb

@ -1,4 +1,4 @@
<h2>Free, no hassle service you can use right away</h2>
<h2>Hassle-free service you can use right away</h2>
<p>
We're System Administrators who built Simple DNS to fill our own needs.

4
app/views/home/index.html.erb

@ -2,9 +2,9 @@
<div class="content">
<div class="inner marketing-inner">
<h1>A DNS service created by sysadmins for sysadmins</h1>
<h1>A free service created by sysadmins for sysadmins</h1>
<table>
<table class="marketing-duo">
<tr>
<td class="marketing-text">
<%= render :partial => 'headlines' %>

2
app/views/layouts/application.html.erb

@ -11,11 +11,11 @@
<div id="container">
<%= render :partial => 'fragments/top' %>
<div id="wrapper" class="wat-cf">
<%= flash_display 'flash' %>
<div id="main" style="width: 100%;">
<div class="block">
<div class="content">
<div class="inner" data-pjax-container="true">
<%= flash_display 'flash' %>
<%= yield %>
</div>
</div>

2
app/views/layouts/marketing.html.erb

@ -11,8 +11,8 @@
<div id="container">
<%= render :partial => 'fragments/top' %>
<div id="wrapper" class="wat-cf">
<%= flash_display 'flash' %>
<div id="main" class="marketing-main" data-pjax-container="true">
<%= flash_display 'flash' %>
<%= yield %>
</div>
</div>

Loading…
Cancel
Save