This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from enpitut2018/introduce-materialize
Introduce and Apply materialize
- Loading branch information
Showing
13 changed files
with
70 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import 'materialize'; | ||
@import "https://fonts.googleapis.com/icon?family=Material+Icons"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,39 @@ | ||
<p id="notice"><%= notice %></p> | ||
<div class="row"> | ||
<div class="col s12 m6"> | ||
<div class="card"> | ||
<div class="card-content"> | ||
<div class="card-title"> | ||
<span><%= @job.title %></span> | ||
<div class="chip"><%= @job.user_id %></div> | ||
</div> | ||
<p><%= @job.description%></p> | ||
</div> | ||
<div class="card-action"> | ||
<%= link_to 'Edit', edit_job_path(@job) %> | ||
<%= link_to 'Back', jobs_path %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<p> | ||
<strong>Title:</strong> | ||
<%= @job.title %> | ||
</p> | ||
|
||
<p> | ||
<strong>User:</strong> | ||
<%= @job.user_id %> | ||
</p> | ||
|
||
<p> | ||
<strong>description:</strong> | ||
<%= @job.description %> | ||
</p> | ||
|
||
<%= link_to 'Edit', edit_job_path(@job) %> | | ||
<%= link_to 'Back', jobs_path %> | ||
|
||
<% if current_user.id == @job.user_id %> | ||
<% if current_user.id == @job.user_id.to_s %> | ||
<%= button_to "問い合わせ一覧", worker_list_job_path(@job), method: :get %> | ||
<% else %> | ||
<%= form_tag({ :controller => 'jobs', :action => 'create_message'},{ :method => :post}) do %> | ||
<%= label "Message", :message %> | ||
<%= text_field_tag :message %> | ||
<%= hidden_field_tag :from_id, current_user.id %> | ||
<%= hidden_field_tag :to_id, @employer.id %> | ||
<%= submit_tag "送信" %> | ||
<% @chat_list.each do |chat| %> | ||
<br> | ||
<%= chat.from_id %> | ||
<%= chat.message %> | ||
<% end %> | ||
<%= submit_tag "Send", :class=>"waves-effect waves-light btn" %> | ||
<br /> | ||
<ul class="collection"> | ||
</li> | ||
<% @chat_list.each do |chat| %> | ||
<li class="collection-item"> | ||
<span class="title"><%= chat.created_at %></span> | ||
<p><%= chat.message %></p> | ||
</li> | ||
<% end %> | ||
</ul> | ||
<% end %> | ||
<% end %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>TsukubaScourcing</title> | ||
<title>TsukubaSourcing</title> | ||
<%= csrf_meta_tags %> | ||
<%= csp_meta_tag %> | ||
|
||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> | ||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> | ||
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> | ||
</head> | ||
|
||
<body> | ||
<nav> | ||
<div class="nav-wrapper"> | ||
<a href="#" class="brand-logo">Tsukuba Sourcing</a> | ||
<ul id="nav-mobile" class="right hide-on-med-and-down"> | ||
<li><a href="/jobs">Jobs</a></li> | ||
<li><a href="/jobs/new">Add Job</a></li> | ||
<% if user_signed_in? %> | ||
<li><a href="#"><%= current_user[:name] %></a></li> | ||
<li><a href="/users/sign_out">Sign Out</a></li> | ||
<% else %> | ||
<li><a href="/users/sign_up">Sign Up</a></li> | ||
<li><a href="/users/sign_in">Sign In</a></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
</nav> | ||
<div class="container"> | ||
<p class="notice"><%= notice %></p> | ||
<p class="alert"><%= alert %></p> | ||
<% if user_signed_in? %> | ||
<p>user: <%= current_user[:name] %></p> | ||
<a href="/users/sign_out">sign out</a> | ||
<% end %> | ||
<%= yield %> | ||
</div> | ||
</body> | ||
</html> |