Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F324378
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Nov 25, 7:38 PM
Size
4 KB
Mime Type
text/x-diff
Expires
Wed, Nov 27, 7:38 PM (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
156199
Attached To
rWEBDNS WebDNS (edet4)
View Options
diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css
index 7f63099..fbee7c0 100644
--- a/app/assets/stylesheets/application.css
+++ b/app/assets/stylesheets/application.css
@@ -1,55 +1,60 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any styles
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
* file per style scope.
*
*= require bootstrap.min
*= require dataTables.bootstrap.min
*= require bootstrap-editable
*= require_tree .
*= require_self
*/
/* Make sure navbar does not overlay body */
body {
padding-top: 70px;
}
.highlight , .highlight>td {
background-color: #b8e0b8 !important;
}
/* DataTable resets bootstrap's margin-bottom */
.datatable-wrapper {
margin-bottom: 20px;
}
/* Reset bootstrap's help cursor on control links */
table a abbr[title] {
cursor: pointer;
}
.tab-pane table {
margin-top: 20px;
}
#inline-record-form #record_ttl {
width: 80px;
}
#inline-record-form #record_prio {
width: 80px;
}
#inline-record-form #record_content {
width: 300px;
}
#domains span.glyphicon-volume-up {
color: red;
}
+
+.record_value {
+ word-wrap:break-word;
+ word-break:break-all;
+}
diff --git a/app/views/domains/show.html.erb b/app/views/domains/show.html.erb
index 1f6b68d..e596892 100644
--- a/app/views/domains/show.html.erb
+++ b/app/views/domains/show.html.erb
@@ -1,71 +1,71 @@
<script>
$(function() {
window.bulky = new Bulky(
'<%= valid_domain_records_path(@domain) %>',
'<%= bulk_domain_records_path(@domain) %>'
);
});
</script>
<% content_for :more_breadcrumbs do %>
<% if !@domain.slave? %>
<li>
<%= link_to_edit edit_domain_path(@domain) %>
</li>
<% end %>
<% if !@domain.slave? %>
<li>
<%= link_to 'Bulk mode', '#bulk', id: 'js-bulky-activate' %>
</li>
<% end %>
<% end %>
<%= render 'bulk_panel' %>
<%= render 'records/inline_form' %>
<%= render 'bulk_new_records' %>
<table id="records" class="table table-striped table-hover">
<thead>
<tr>
<th colspan="6">Records</th>
<th colspan="3"><%= 'Controls' if !@domain.slave? %></th>
</tr>
</thead>
<tbody>
<% Record.smart_order(@domain.records).each do |record| %>
<tr id="record-<%= record.id %>" data-id="<%= record.id %>" class="<%= record.type.downcase %> <%= record.disabled? ? 'warning' : '' %>">
<td><%= editable_record_attr(record, :name) %></td>
<td><%= record.ttl %></td>
<td>IN</td>
<td><%= record.type %></td>
<% if record.supports_prio? %>
<td><%= editable_record_attr(record, :prio) %></td>
<% else %>
<td> </td>
<% end %>
- <td><%= editable_record_attr(record, :content) %></td>
+ <td class="record_value"><%= editable_record_attr(record, :content) %></td>
<% if record.classless_delegation? %>
<td/>
<td/>
<td><%= link_to_destroy [@domain, record], method: :delete, data: { confirm: 'Are you sure?' } %></td>
<% elsif can_edit?(record) %>
<td>
<% if record.disabled? %>
<%= link_to_enable enable_domain_record_path(@domain, record), method: :put, class: 'js-bulk-hide' %>
<% else %>
<%= link_to_disable disable_domain_record_path(@domain, record), method: :put, class: 'js-bulk-hide' %>
<% end %>
</td>
<td><%= link_to_edit edit_domain_record_path(@domain, record), class: 'js-bulk-hide' %></td>
<td><%= link_to_destroy [@domain, record], method: :delete, data: { confirm: 'Are you sure?', id: record.id }, class: 'js-destroy' %></td>
<% else %>
<td/>
<td/>
<td/>
<% end %>
</tr>
<% end %>
</tbody>
</table>
Event Timeline
Log In to Comment