diff --git a/apps/app/priv/templates/phx.gen.html/show.html.eex b/apps/app/priv/templates/phx.gen.html/show.html.eex index 0568fef3..862970e9 100644 --- a/apps/app/priv/templates/phx.gen.html/show.html.eex +++ b/apps/app/priv/templates/phx.gen.html/show.html.eex @@ -9,18 +9,12 @@ -
-
-
- <%= for {k, _} <- schema.attrs do %> -
-
- <%= Phoenix.Naming.humanize(Atom.to_string(k)) %>: - <%%= @<%= schema.singular %>.<%= k %> %> -
-
- <% end %> +
+ <%= for {k, _} <- schema.attrs do %> +
+ <%= Phoenix.Naming.humanize(Atom.to_string(k)) %>: + <%%= @<%= schema.singular %>.<%= k %> %>
-
+ <% end %>
diff --git a/apps/content/lib/content/post_admin.ex b/apps/content/lib/content/post_admin.ex index 77e04b74..50554ae9 100644 --- a/apps/content/lib/content/post_admin.ex +++ b/apps/content/lib/content/post_admin.ex @@ -53,7 +53,6 @@ defmodule Content.PostAdmin do sticky: nil, comment_status: %{choices: [{"open", :open}, {"closed", :closed}]}, ping_status: %{choices: [{"open", :open}, {"closed", :closed}]}, - password: nil, menu_order: nil, ] end diff --git a/apps/content/lib/content_web/templates/posts/comments.html.eex b/apps/content/lib/content_web/templates/posts/comments.html.eex index f9d3d1d2..0b7a4bb1 100644 --- a/apps/content/lib/content_web/templates/posts/comments.html.eex +++ b/apps/content/lib/content_web/templates/posts/comments.html.eex @@ -12,7 +12,7 @@

-
+
<%= sanitize comment.content |> auto_paragraph_tags |> elem(1) |> IO.iodata_to_binary() %>
diff --git a/apps/content/lib/content_web/templates/posts/index.html.eex b/apps/content/lib/content_web/templates/posts/index.html.eex index 892eb9bf..ddd03776 100644 --- a/apps/content/lib/content_web/templates/posts/index.html.eex +++ b/apps/content/lib/content_web/templates/posts/index.html.eex @@ -7,20 +7,16 @@ <%= post_topmatter(@conn, post) %>
- <%= if authenticated_for_post?(@conn, post) do %> - <%= render "thumb.html", post: post, thumbs: @thumbs %> -
- <%= raw post |> Content.Post.content_page(1) |> Content.Post.before_more |> process_content |> raw %> - <%= if post.content =~ "" do %> -

- <%= link "Keep Reading", to: Routes.posts_path(@conn, :show, post) %> -

- <% end %> - <%= render "pagination.html", conn: @conn, post: post %> -
- <% else %> - <%= render "password_form.html", post: post, conn: @conn %> - <% end %> + <%= render "thumb.html", post: post, thumbs: @thumbs %> +
+ <%= raw post |> Content.Post.content_page(1) |> Content.Post.before_more |> process_content |> raw %> + <%= if post.content =~ "" do %> +

+ <%= link "Keep Reading", to: Routes.posts_path(@conn, :show, post) %> +

+ <% end %> + <%= render "pagination.html", conn: @conn, post: post %> +
<%= case post.categories || [] do %> diff --git a/apps/content/lib/content_web/templates/posts/password_form.html.eex b/apps/content/lib/content_web/templates/posts/password_form.html.eex deleted file mode 100644 index f1b7f5e0..00000000 --- a/apps/content/lib/content_web/templates/posts/password_form.html.eex +++ /dev/null @@ -1,11 +0,0 @@ -<%= form_for @conn, "/wp-login.php?action=postpass", [class: "post-password-form"], fn f -> %> -

This content is password protected. To view it please enter your password below:

-

- <%= label f, :post_password do %> - Password: - <% end %> -

-

- -

-<% end %> diff --git a/apps/content/lib/content_web/templates/posts/static_pages/theming/_buttons.html.eex b/apps/content/lib/content_web/templates/posts/static_pages/theming/_buttons.html.eex deleted file mode 100644 index 80c11779..00000000 --- a/apps/content/lib/content_web/templates/posts/static_pages/theming/_buttons.html.eex +++ /dev/null @@ -1,156 +0,0 @@ -
- - - - - - -
- - - - -
- -
- - -
- - - -
- -
-
Horizontal
- -
-
-
Vertical
- -
-
-
Fade In
- -
- -
- - - -
- -
- - - -
- -
- - - - -
- -
- -
- -
- -
- -
-
One
-
Two
-
-
- " class="ui wireframe image"> -
-
-
One
-
Two
-
- -
-
- - - - - - - -
-
- - - - - - - - - -
- - -
- -
- - - - -
- -
diff --git a/apps/content/lib/content_web/templates/posts/static_pages/theming/_card.html.eex b/apps/content/lib/content_web/templates/posts/static_pages/theming/_card.html.eex deleted file mode 100644 index cb4ce0e8..00000000 --- a/apps/content/lib/content_web/templates/posts/static_pages/theming/_card.html.eex +++ /dev/null @@ -1,244 +0,0 @@ -
-
-
-
-
-
-
Add Friend
-
-
-
- -
-
-
Title
-
- Meta -
-
One or two sentence description that may go to several lines
-
- -
-
-
-
-
-
-
Call to Action
-
-
-
- -
-
- Name -
- Date -
-
- -
-
-
-
- -
- -
-
- -
-
-
-
-
- -
- -
-
- -
-
-
-
-
-
- - - - Favorite - -
-
- -
-
-
-
-
- - Abbreviated Header -
-
- -
-
-
-
- Action 1 -
-
- Action 2 -
-
-
- -
-
Cute Dog
-
- Animals -
-
- -
-
-
-
- Username -
-
-
-
-
-
- Action 1 -
-
- Action 2 -
-
-
- -
-
-
- Action 3 -
-
- Action 4 -
-
-
-
- - -
-
-
- Content 1 -
-
- Content 2 -
-
- Content 3 -
-
- Extra Content -
-
-
-
- Content 1 -
-
- Content 2 -
-
- Content 3 -
-
- Extra Content -
-
-
-
- Content 1 -
-
- Content 2 -
-
- Content 3 -
-
- Extra Content -
-
-
-
- Content 1 -
-
- Content 2 -
-
- Content 3 -
-
- Extra Content -
-
-
- -
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
diff --git a/apps/content/lib/content_web/templates/posts/static_pages/theming/_input.html.eex b/apps/content/lib/content_web/templates/posts/static_pages/theming/_input.html.eex deleted file mode 100644 index b6b44a55..00000000 --- a/apps/content/lib/content_web/templates/posts/static_pages/theming/_input.html.eex +++ /dev/null @@ -1,98 +0,0 @@ -
-
-
- -
- - -
Search
-
- -
-
- -
-
- -
- - -
-
- -
- - -
-
- - -
-
-
- - -
- -
- - -
- -
-
- -
- -
- -
-
-
- http:// -
- - -
-
- -
- - Add -
-
-
-
- -
- -
-
- -
-
-
diff --git a/apps/content/lib/content_web/templates/posts/static_pages/theming/_menu.html.eex b/apps/content/lib/content_web/templates/posts/static_pages/theming/_menu.html.eex deleted file mode 100644 index 4be863da..00000000 --- a/apps/content/lib/content_web/templates/posts/static_pages/theming/_menu.html.eex +++ /dev/null @@ -1,140 +0,0 @@ -
- - - - - - -
-
- -
- -
- -
- -
- -
-
-
diff --git a/apps/content/lib/content_web/templates/posts/static_pages/theming/_site.html.eex b/apps/content/lib/content_web/templates/posts/static_pages/theming/_site.html.eex deleted file mode 100644 index bf6fd138..00000000 --- a/apps/content/lib/content_web/templates/posts/static_pages/theming/_site.html.eex +++ /dev/null @@ -1,36 +0,0 @@ -
-
-
-

Heading 1

-

Heading 2

-

Heading 3

-

Heading 4

-
Heading 5
-

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.

-
-
-

Example body text

-

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.

-

This line of text is meant to be treated as fine print.

-

The following snippet of text is rendered as bold text.

-

The following snippet of text is rendered as italicized text.

-

An abbreviation of the word attribute is attr.

-
-
-
-
Red
-
Orange
-
Yellow
-
Olive
-
Green
-
Teal
-
Blue
-
Violet
-
Purple
-
Pink
-
Brown
-
Grey
-
Black
-
-
-
diff --git a/apps/content/lib/content_web/templates/posts/static_pages/theming/_tables.html.eex b/apps/content/lib/content_web/templates/posts/static_pages/theming/_tables.html.eex deleted file mode 100644 index e23926d5..00000000 --- a/apps/content/lib/content_web/templates/posts/static_pages/theming/_tables.html.eex +++ /dev/null @@ -1,423 +0,0 @@ -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PersonCaloriesFatProtein
Delmar3636g2g
Louise2424g29g
Terrell2211g9g
Marion735g3g
Clayton738g20g
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PersonCaloriesFatProtein
Drema1526g8g
Nona1121g16g
Isidra3443g11g
Bart4140g30g
Nguyet4144g28g
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PersonCaloriesFatProtein
Mirna128g29g
Fernando382g48g
Lisette189g23g
Ahmad4226g49g
Laquanda2727g49g
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PersonCaloriesFatProtein
Drema1526g8g
Nona1121g16g
Isidra3443g11g
Bart4140g30g
Nguyet4144g28g
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PersonCaloriesFatProtein
Tasia127g21g
Ronnie3837g38g
Gabriel3046g46g
Logan1221g39g
Clare3941g2g
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PersonCaloriesFatProtein
Rosaline535g6g
Barrie2723g28g
Trinidad1450g7g
Jaqueline3130g50g
Tamala186g13g
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PersonCaloriesFatProtein
Lianne2332g43g
Joette2113g31g
Le2839g23g
Sacha4643g13g
Bruna947g12g
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CaloriesFatProtein
Lianne2332g43g
Joette2113g31g
Le2839g23g
Sacha4643g13g
Bruna947g12g
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PersonCaloriesFatProtein
Lianne2332g43g
Joette2113g31g
Le2839g23g
Sacha4643g13g
Bruna947g12g
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PersonCaloriesFatProtein
Lianne2332g43g
Joette2113g31g
Le2839g23g
Sacha4643g13g
Bruna947g12g
-
-
diff --git a/apps/content/lib/content_web/templates/wp_comment/edit.html.eex b/apps/content/lib/content_web/templates/wp_comment/edit.html.eex deleted file mode 100644 index 18a8e31c..00000000 --- a/apps/content/lib/content_web/templates/wp_comment/edit.html.eex +++ /dev/null @@ -1,5 +0,0 @@ -

Edit comment

- -<%= render "form.html", Map.put(assigns, :action, Routes.comment_path(@conn, :update, @comment)) %> - -<%= link "Back", to: Routes.comment_path(@conn, :index) %> diff --git a/apps/content/lib/content_web/templates/wp_comment/form.html.eex b/apps/content/lib/content_web/templates/wp_comment/form.html.eex deleted file mode 100644 index 065ac163..00000000 --- a/apps/content/lib/content_web/templates/wp_comment/form.html.eex +++ /dev/null @@ -1,11 +0,0 @@ -<%= form_for @changeset, @action, fn f -> %> - <%= if @changeset.action do %> -
-

Oops, something went wrong! Please check the errors below.

-
- <% end %> - -
- <%= submit "Submit", class: "btn btn-primary" %> -
-<% end %> diff --git a/apps/content/lib/content_web/templates/wp_comment/index.html.eex b/apps/content/lib/content_web/templates/wp_comment/index.html.eex deleted file mode 100644 index c3219ce5..00000000 --- a/apps/content/lib/content_web/templates/wp_comment/index.html.eex +++ /dev/null @@ -1,24 +0,0 @@ -

Listing comments

- - - - - - - - - -<%= for comment <- @comments do %> - - - - -<% end %> - -
- <%= link "Show", to: Routes.comment_path(@conn, :show, comment), class: "btn btn-default btn-xs" %> - <%= link "Edit", to: Routes.comment_path(@conn, :edit, comment), class: "btn btn-default btn-xs" %> - <%= link "Delete", to: Routes.comment_path(@conn, :delete, comment), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %> -
- -<%= link "New comment", to: Routes.comment_path(@conn, :new) %> diff --git a/apps/content/lib/content_web/templates/wp_comment/new.html.eex b/apps/content/lib/content_web/templates/wp_comment/new.html.eex deleted file mode 100644 index 594730d8..00000000 --- a/apps/content/lib/content_web/templates/wp_comment/new.html.eex +++ /dev/null @@ -1,5 +0,0 @@ -

New comment

- -<%= render "form.html", Map.put(assigns, :action, Routes.comment_path(@conn, :create)) %> - -<%= link "Back", to: Routes.comment_path(@conn, :index) %> diff --git a/apps/content/lib/content_web/templates/wp_comment/show.html.eex b/apps/content/lib/content_web/templates/wp_comment/show.html.eex deleted file mode 100644 index 93654c34..00000000 --- a/apps/content/lib/content_web/templates/wp_comment/show.html.eex +++ /dev/null @@ -1,8 +0,0 @@ -

Show comment

- - - -<%= link "Edit", to: Routes.comment_path(@conn, :edit, @comment) %> -<%= link "Back", to: Routes.comment_path(@conn, :index) %> diff --git a/apps/content/lib/content_web/views/wp_comment_view.ex b/apps/content/lib/content_web/views/wp_comment_view.ex deleted file mode 100644 index 0db9fcae..00000000 --- a/apps/content/lib/content_web/views/wp_comment_view.ex +++ /dev/null @@ -1,3 +0,0 @@ -defmodule Content.CommentView do - use Content, :view -end