diff --git a/app/cells/decidim/diff/attribute.erb b/app/cells/decidim/diff/attribute.erb new file mode 100644 index 00000000..bc5d2561 --- /dev/null +++ b/app/cells/decidim/diff/attribute.erb @@ -0,0 +1,16 @@ +
+
+

+ <%= data[:label] %> +

+
+ +
+ <%= diff_split(data, "left", format) %> + <%= diff_split(data, "right", format) %> +
+ +
+ <%= diff_unified(data, format) %> +
+
diff --git a/app/cells/decidim/diff/diff_mode_dropdown.erb b/app/cells/decidim/diff/diff_mode_dropdown.erb new file mode 100644 index 00000000..7be74c15 --- /dev/null +++ b/app/cells/decidim/diff/diff_mode_dropdown.erb @@ -0,0 +1,34 @@ +
+
+ + <%= t("versions.dropdown.choose_diff_view_mode") %> + + + +
+
diff --git a/spec/lib/overrides_spec.rb b/spec/lib/overrides_spec.rb index 66cbb575..1e479ad1 100644 --- a/spec/lib/overrides_spec.rb +++ b/spec/lib/overrides_spec.rb @@ -25,6 +25,8 @@ "/app/views/decidim/devise/shared/_omniauth_buttons_mini.html.erb" => "d3a413ce7c64959eee3b912406075f84", # cells "/app/cells/decidim/date_range/show.erb" => "7e050b942e447386fc96ef6528039cec", + "/app/cells/decidim/diff/attribute.erb" => "d648bc8e71e27c404d82132d6e3c3241", + "/app/cells/decidim/diff/diff_mode_dropdown.erb" => "770563c121c875159a88cd5e142658e3", # other overrides "/app/helpers/decidim/card_helper.rb" => "b9e7f943ae7c289b2855d328de7b371b", "/app/commands/decidim/amendable/accept.rb" => "c561b69a7bd5b68dfc4684c11001cb2c",