Skip to content

Commit

Permalink
update page index and session new
Browse files Browse the repository at this point in the history
  • Loading branch information
smpallen99 committed Aug 3, 2017
1 parent b28fda3 commit df3376e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 22 deletions.
10 changes: 10 additions & 0 deletions lib/coherence_demo_web/templates/coherence/session/new.html.eex
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><%= gettext "Default Login Credentials" %></h3>
</div>
<div class="panel-body">
<p><%= gettext "Email" %>: <strong>demouser@example.com</strong></p>
<p><%= gettext "Password" %>: <strong>secret</strong></p>
</div>
</div>
<br \>

<%= form_for @conn, session_path(@conn, :create), [as: :session], fn f -> %>
Expand Down Expand Up @@ -29,6 +38,7 @@
</div>

<div class="form-group">
<!-- create links based on configured coherence options -->
<%= coherence_links(@conn, :new_session) %>
</div>

Expand Down
25 changes: 5 additions & 20 deletions lib/coherence_demo_web/templates/page/index.html.eex
Original file line number Diff line number Diff line change
@@ -1,35 +1,20 @@
<div class="jumbotron">
<h2><%= gettext "Welcome to %{name}!", name: "Phoenix" %></h2>
<p class="lead">A productive web framework that<br />does not compromise speed and maintainability.</p>
<h2><%= gettext "Welcome to %{name}!", name: "Coherence" %></h2>
<p class="lead">An full-featured authentication package</p>
</div>

<div class="row marketing">
<div class="col-lg-6">
<h4>Resources</h4>
<ul>
<li>
<a href="http://phoenixframework.org/docs/overview">Guides</a>
<a href="https://github.com/smpallen99/coherence_demo">Project's Source</a>
</li>
<li>
<a href="https://hexdocs.pm/phoenix">Docs</a>
<a href="https://hexdocs.pm/coherence">Coherence</a>
</li>
<li>
<a href="https://github.com/phoenixframework/phoenix">Source</a>
</li>
</ul>
</div>

<div class="col-lg-6">
<h4>Help</h4>
<ul>
<li>
<a href="http://groups.google.com/group/phoenix-talk">Mailing list</a>
</li>
<li>
<a href="http://webchat.freenode.net/?channels=elixir-lang">#elixir-lang on freenode IRC</a>
</li>
<li>
<a href="https://twitter.com/elixirphoenix">@elixirphoenix</a>
<a href="https://github.com/smpallen99/coherence">Coherence Source</a>
</li>
</ul>
</div>
Expand Down
5 changes: 3 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ defmodule CoherenceDemo.Mixfile do
# Type `mix help deps` for examples and options.
defp deps do
[
{:phoenix, "~> 1.3.0"},
{:phoenix, "~> 1.3"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 3.2"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.10"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"},
{:coherence, path: "../coherence3"},
# {:coherence, path: "../coherence3"},
{:coherence, github: "smpallen99/coherence"},
{:cowboy, "~> 1.0"}
]
end
Expand Down
1 change: 1 addition & 0 deletions mix.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
%{"certifi": {:hex, :certifi, "2.0.0", "a0c0e475107135f76b8c1d5bc7efb33cd3815cb3cf3dea7aefdd174dabead064", [], [], "hexpm"},
"coherence": {:git, "https://github.com/smpallen99/coherence.git", "d2220779fe46c3528cb1bbe6e8d7e802468dc50d", []},
"combine": {:hex, :combine, "0.9.6", "8d1034a127d4cbf6924c8a5010d3534d958085575fa4d9b878f200d79ac78335", [], [], "hexpm"},
"comeonin": {:hex, :comeonin, "3.2.0", "cb10995a22aed6812667efb3856f548818c85d85394d8132bc116fbd6995c1ef", [], [{:elixir_make, "~> 0.4", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm"},
"connection": {:hex, :connection, "1.0.4", "a1cae72211f0eef17705aaededacac3eb30e6625b04a6117c1b2db6ace7d5976", [], [], "hexpm"},
Expand Down

0 comments on commit df3376e

Please sign in to comment.