<%= link("Download", class: "dropdown-item", to: Routes.archive_path(@conn, :download, @org.name, @product.name, archive.uuid)) %>
- <%= link "Delete", class: "dropdown-item", to: Routes.archive_path(@conn, :delete, @org.name, @product.name, archive.uuid), method: :delete, data: [confirm: "Are you sure you want to delete this archive? This can not be undone."] %>
+ <%= link("Delete",
+ class: "dropdown-item",
+ to: Routes.archive_path(@conn, :delete, @org.name, @product.name, archive.uuid),
+ method: :delete,
+ data: [confirm: "Are you sure you want to delete this archive? This can not be undone."]
+ ) %>
diff --git a/lib/nerves_hub_web/templates/audit_log/_audit_log_feed.html.heex b/lib/nerves_hub_web/templates/audit_log/_audit_log_feed.html.heex
index 7eda467de..d505bf534 100644
--- a/lib/nerves_hub_web/templates/audit_log/_audit_log_feed.html.heex
+++ b/lib/nerves_hub_web/templates/audit_log/_audit_log_feed.html.heex
@@ -6,7 +6,7 @@
<% else %>
<%= for audit_log <- @audit_logs do %>
-
+
<%= audit_log.description %>
diff --git a/lib/nerves_hub_web/templates/deployment/edit.html.heex b/lib/nerves_hub_web/templates/deployment/edit.html.heex
index 09a8c618c..d2f7bf836 100644
--- a/lib/nerves_hub_web/templates/deployment/edit.html.heex
+++ b/lib/nerves_hub_web/templates/deployment/edit.html.heex
@@ -1,4 +1,4 @@
-<%= link "Back to Deployment", to: Routes.deployment_path(@conn, :show, @org.name, @product.name, @deployment.name), class: "back-link"%>
+<%= link("Back to Deployment", to: Routes.deployment_path(@conn, :show, @org.name, @product.name, @deployment.name), class: "back-link") %>
Edit Deployment
Firmware version details
@@ -10,12 +10,10 @@
Version
- <%=
- case @firmware.version do
- nil -> "--"
- version -> version
- end
- %>
+ <%= case @firmware.version do
+ nil -> "--"
+ version -> version
+ end %>
@@ -96,8 +94,8 @@
The number of devices that will update at any given time. This is a soft limit and concurrent updates may be slightly above this number.
- <%= number_input f, :concurrent_updates, class: "form-control", id: "concurrent_updates" %>
-
@@ -106,10 +104,9 @@
The number of minutes before an inflight update expires to clear the queue
- <%= number_input f, :inflight_update_expiration_minutes, class: "form-control", id: "concurrent_updates" %>
-
@@ -204,14 +201,14 @@
Run this code when the device first connects to the console.
- <%= textarea f, :connecting_code, rows: 6, class: "form-control", id: "connecting_code" %>
+ <%= textarea(f, :connecting_code, rows: 6, class: "form-control", id: "connecting_code") %>
Make sure this is valid Elixir and will not crash the device. This will run before device specific first connect code.
-
@@ -28,11 +28,11 @@
Use tags to manage firmware deployments for different sets of devices.
- <%= text_input f, :tags, class: "form-control", id: "tags", value: tags_to_string(@changeset) %>
+ <%= text_input(f, :tags, class: "form-control", id: "tags", value: tags_to_string(@changeset)) %>
Every device is added to the 'all' tag by default. You can have multiple tags separated by commas.
-
<%= error_tag f, :tags %>
+
<%= error_tag(f, :tags) %>
@@ -41,14 +41,14 @@
Run this code when the device first connects to the console.
- <%= textarea f, :connecting_code, rows: 6, class: "form-control", id: "connecting_code" %>
+ <%= textarea(f, :connecting_code, rows: 6, class: "form-control", id: "connecting_code") %>
Make sure this is valid Elixir and will not crash the device.
-
@@ -27,11 +27,11 @@
Tags are used by deployments to target a device. A device must have matching tag(s) for the deployment to update it
- <%= text_input f, :tags, class: "form-control", id: "tag_input" %>
-
@@ -38,8 +38,8 @@
Tags are used by deployments to target a device. A device must have matching tag(s) for the deployment to update it
- <%= text_input fp, :tags, class: "form-control", id: "tag_input" %>
-
<% end %>
diff --git a/lib/nerves_hub_web/templates/org_certificate/index.html.heex b/lib/nerves_hub_web/templates/org_certificate/index.html.heex
index 7606e378b..d693f6e2c 100644
--- a/lib/nerves_hub_web/templates/org_certificate/index.html.heex
+++ b/lib/nerves_hub_web/templates/org_certificate/index.html.heex
@@ -15,7 +15,7 @@
Not before
Not after
Check expiration?
-
JITP Enabled?
+
JITP Enabled?
@@ -63,8 +63,13 @@
- <%= link "Edit", class: "dropdown-item", to: Routes.org_certificate_path(@conn, :edit, @org.name, cert.serial) %>
- <%= link "Delete", class: "dropdown-item", to: Routes.org_certificate_path(@conn, :delete, @org.name, cert.serial), method: :delete, data: [confirm: "Are you sure you want to delete this certificate? This can not be undone."] %>
+ <%= link("Edit", class: "dropdown-item", to: Routes.org_certificate_path(@conn, :edit, @org.name, cert.serial)) %>
+ <%= link("Delete",
+ class: "dropdown-item",
+ to: Routes.org_certificate_path(@conn, :delete, @org.name, cert.serial),
+ method: :delete,
+ data: [confirm: "Are you sure you want to delete this certificate? This can not be undone."]
+ ) %>
@@ -73,8 +72,8 @@
Tags are used by deployments to target a device. A device must have matching tag(s) for the deployment to update it
- <%= text_input fp, :tags, class: "form-control", id: "tag_input" %>
-
<% end %>
diff --git a/lib/nerves_hub_web/templates/org_user/index.html.heex b/lib/nerves_hub_web/templates/org_user/index.html.heex
index ae78e7fbf..b90d29145 100644
--- a/lib/nerves_hub_web/templates/org_user/index.html.heex
+++ b/lib/nerves_hub_web/templates/org_user/index.html.heex
@@ -66,9 +66,14 @@
- <%= link "edit", class: "dropdown-item", to: Routes.org_user_path(@conn, :edit, @org.name, org_user.user_id) %>
+ <%= link("edit", class: "dropdown-item", to: Routes.org_user_path(@conn, :edit, @org.name, org_user.user_id)) %>
- <%= link "Delete", class: "dropdown-item", to: Routes.org_user_path(@conn, :delete, @org.name, org_user.user_id), method: :delete, data: [confirm: "Are you sure you want to remove this user? This can not be undone."] %>
+ <%= link("Delete",
+ class: "dropdown-item",
+ to: Routes.org_user_path(@conn, :delete, @org.name, org_user.user_id),
+ method: :delete,
+ data: [confirm: "Are you sure you want to remove this user? This can not be undone."]
+ ) %>