From: Sascha Peilicke
---
src/webui/app/views/shared/_editor.html.erb | 9 ++++++---
src/webui/app/views/shared/_sourcediff.html.erb | 2 +-
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/webui/app/views/shared/_editor.html.erb b/src/webui/app/views/shared/_editor.html.erb
index 2bdd9d7..e0d1209 100644
--- a/src/webui/app/views/shared/_editor.html.erb
+++ b/src/webui/app/views/shared/_editor.html.erb
@@ -2,13 +2,16 @@
<% height ||= '600px' %>
<% save ||= false %>
<% read_only ||= false %>
+<% no_border ||= false %>
<% content_for :content_for_head do %>
<%= stylesheet_link_tag 'cm2/codemirror', 'cm2/codemirror-ui', 'cm2/theme/default' %>
<style type="text/css">
- .CodeMirror {
- border-width: 0 0 0 0
- }
+ <% if no_border %>
+ .CodeMirror {
+ border-width: 0 0 0 0
+ }
+ <% end %>
.CodeMirror-scroll {
height: <%= height %>;
<% if height == 'auto' %>
diff --git a/src/webui/app/views/shared/_sourcediff.html.erb b/src/webui/app/views/shared/_sourcediff.html.erb
index 6195b4e..dae6456 100644
--- a/src/webui/app/views/shared/_sourcediff.html.erb
+++ b/src/webui/app/views/shared/_sourcediff.html.erb
@@ -62,7 +62,7 @@
<td align="center" valign="bottom"><%= link_to('^', :anchor => "diff_view_#{file_id}") %></td>
<td colspan="2">
<%# TODO: Fix editor size adjustment %>
- <%= render :partial => "shared/editor", :locals => {:text => file_diff_text, :mode => 'diff', :read_only => true, :height => 'auto', :width => '750px'} %>
+ <%= render :partial => "shared/editor", :locals => {:text => file_diff_text, :mode => 'diff', :read_only => true, :height => 'auto', :width => '750px', :no_border => true} %>
</td>
</tr>
<% end %>
--
1.7.7
--
To unsubscribe, e-mail: obs-commits+unsubscribe@opensuse.org
To contact the owner, e-mail: obs-commits+owner@opensuse.org