Rensselaer Center for Open Source Software

Improve styling of redaction view

6 files changed, 38 lines added, 22 lines removed

Changes

--- app/views/redactions/show.html.erb 6b159c165a6080fc29906e33d0d55cf4ef1a415c
+++ app/views/redactions/show.html.erb c5152d1860a2c5164355eeeb78f4a092ceb55cc8
@@ -11,6 +11,10 @@
-<%= link_to t('redaction.show.edit'), edit_redaction_path(@redaction) %>
-<%= button_to(t('redaction.show.destroy'), @redaction, :confirm => t('redaction.show.confirm'), :method => "delete", :remote => true) %>
+<table>
+<tr>
+<td><%= button_to t('redaction.show.edit'), edit_redaction_path(@redaction), :method => :get %></td>
+<td><%= button_to t('redaction.show.destroy'), @redaction, :confirm => t('redaction.show.confirm'), :method => "delete", :remote => true %></td>
+</tr>
+</table>
--- config/locales/en.yml 6b159c165a6080fc29906e33d0d55cf4ef1a415c
+++ config/locales/en.yml c5152d1860a2c5164355eeeb78f4a092ceb55cc8
@@ -2017,11 +2017,11 @@
-      description: "Description"
+      description: "Description:"
-      edit: "Edit this redaction."
+      edit: "Edit this redaction"
--- db/structure.sql 6b159c165a6080fc29906e33d0d55cf4ef1a415c
+++ db/structure.sql c5152d1860a2c5164355eeeb78f4a092ceb55cc8
@@ -101,7 +101,7 @@
-    AS '/srv/www/master.osm.compton.nu/db/functions/libpgosm.so', 'maptile_for_point';
+    AS '/srv/www/redaction.osm.compton.nu/db/functions/libpgosm.so', 'maptile_for_point';
@@ -110,7 +110,7 @@
-    AS '/srv/www/master.osm.compton.nu/db/functions/libpgosm.so', 'tile_for_point';
+    AS '/srv/www/redaction.osm.compton.nu/db/functions/libpgosm.so', 'tile_for_point';
@@ -119,7 +119,7 @@
-    AS '/srv/www/master.osm.compton.nu/db/functions/libpgosm.so', 'xid_to_int4';
+    AS '/srv/www/redaction.osm.compton.nu/db/functions/libpgosm.so', 'xid_to_int4';
@@ -218,8 +218,8 @@
-    created_at timestamp without time zone,
-    updated_at timestamp without time zone,
+    created_at timestamp without time zone NOT NULL,
+    updated_at timestamp without time zone NOT NULL,
@@ -696,7 +696,7 @@
-    redaction_id integer
+    redaction_id bigint
@@ -708,8 +708,8 @@
-    created_at timestamp without time zone,
-    updated_at timestamp without time zone
+    created_at timestamp without time zone NOT NULL,
+    updated_at timestamp without time zone NOT NULL
@@ -745,8 +745,8 @@
-    created_at timestamp without time zone,
-    updated_at timestamp without time zone,
+    created_at timestamp without time zone NOT NULL,
+    updated_at timestamp without time zone NOT NULL,
@@ -788,7 +788,9 @@
-    updated_at timestamp without time zone NOT NULL
+    updated_at timestamp without time zone NOT NULL,
+    user_id bigint NOT NULL,
+    description_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
@@ -847,7 +849,7 @@
-    redaction_id integer
+    redaction_id bigint
@@ -872,8 +874,8 @@
-    created_at timestamp without time zone,
-    updated_at timestamp without time zone,
+    created_at timestamp without time zone NOT NULL,
+    updated_at timestamp without time zone NOT NULL,
@@ -915,8 +917,8 @@
-    created_at timestamp without time zone,
-    updated_at timestamp without time zone,
+    created_at timestamp without time zone NOT NULL,
+    updated_at timestamp without time zone NOT NULL,
@@ -998,9 +1000,9 @@
+    openid_url character varying(255),
-    openid_url character varying(255),
@@ -1059,7 +1061,7 @@
-    redaction_id integer
+    redaction_id bigint
@@ -2072,6 +2074,14 @@
+-- Name: redactions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
+--
+
+ALTER TABLE ONLY redactions
+    ADD CONSTRAINT redactions_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
+
+
+--
@@ -2251,6 +2261,8 @@
+INSERT INTO schema_migrations (version) VALUES ('20120404205604');
+
Tom Hughes
Jumpstart • 58 weeks ago