Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
116 additions
and
65 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 +1,4 @@ | ||
// This is a manifest file that'll be compiled into application.js, which will include all the files | ||
// listed below. | ||
// | ||
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, | ||
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. | ||
// | ||
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the | ||
// compiled file. JavaScript code in this file should be added after the last require_* statement. | ||
// | ||
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details | ||
// about supported directives. | ||
// | ||
//= require jquery | ||
//= require jquery_ujs | ||
//= require_tree . | ||
//= require tether | ||
//= require bootstrap-sprockets |
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,3 @@ | ||
@import "style"; | ||
// Custom bootstrap variables must be set or imported before bootstrap itself. | ||
@import "bootstrap"; |
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,15 @@ | ||
$font-family-sans-serif: Consolas, "Helvetica Neue", Helvetica, Arial, sans-serif !default; | ||
$font-family-serif: Georgia, "Times New Roman", Times, serif !default; | ||
$font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace !default; | ||
$font-family-base: $font-family-sans-serif !default; | ||
|
||
// Pixel value used to responsively scale all typography. Applied to the `<html>` element. | ||
$font-size-root: 16px !default; | ||
|
||
#main{ | ||
margin-top: 100px; | ||
} | ||
.alert-container{ | ||
margin-top: 40px; | ||
margin-bottom: 40px; | ||
} |
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,4 +1,9 @@ | ||
<% unless user_signed_in? %> | ||
<%#= link_to "Sign in with Google", user_omniauth_authorize_path(:google_oauth2) %> | ||
<%= link_to "Sign in with Google", user_google_oauth2_omniauth_authorize_path %> | ||
<%= link_to( | ||
image_tag("google/glogin.png", size: "193x48"), | ||
user_google_oauth2_omniauth_authorize_path, | ||
title: "Sign in with Google" | ||
) %> | ||
<% else %> | ||
<p><%= link_to("Go to projects page", projects_path) %></p> | ||
<% 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,17 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | ||
<title>Project start page</title> | ||
<%= csrf_meta_tags %> | ||
<%= stylesheet_link_tag 'application', media: 'all' %> | ||
<%= javascript_include_tag 'application' %> | ||
</head> | ||
|
||
<body> | ||
<%= render partial: "shared/header" %> | ||
<p class="notice"><%= notice %></p> | ||
<p class="alert"><%= alert %></p> | ||
<%= yield %> | ||
<div class="container"> | ||
<%= render partial: "shared/header" %> | ||
<%= render partial: "shared/alert" %> | ||
|
||
<div id="main"> | ||
<%= yield %> | ||
</div><!-- /main--> | ||
</div> <!-- /container --> | ||
|
||
<%= javascript_include_tag 'application' %> | ||
</body> | ||
</html> |
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,9 +1,9 @@ | ||
<h2>Projects</h2> | ||
|
||
<% unless @projects.blank? %> | ||
<ul> | ||
<div class="list-group"> | ||
<% @projects.each do |project| %> | ||
<li><%= link_to(project.name, project) %></li> | ||
<%= link_to(project.name, project, class: "list-group-item") %> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<% else %> | ||
<p>No projects yet. Let's go to play ping pong!</p> | ||
<% 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
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,4 @@ | ||
<div class="alert-container"> | ||
<%= content_tag(:div, notice, class: "alert alert-success", role: "alert") if notice %> | ||
<%= content_tag(:div, alert, class: "alert alert-danger", role: "alert") if alert %> | ||
</div> |
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,3 +1,28 @@ | ||
<% if user_signed_in? %> | ||
logged as: <%= current_user.email %> <%= image_tag(current_user.avatar, width: '40') unless current_user.avatar.blank? %> | ||
<% end %> | ||
<nav class="navbar navbar-light bg-faded"> | ||
<button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#navbar-header" aria-controls="navbar-header"> | ||
☰ | ||
</button> | ||
<div class="collapse navbar-toggleable-xs" id="navbar-header"> | ||
<a class="navbar-brand" href="#">Project Pages</a> | ||
<ul class="nav navbar-nav"> | ||
<li class="nav-item active"> | ||
<a class="nav-link" href="<%= root_path %>">Home <span class="sr-only">(current)</span></a> | ||
</li> | ||
</ul> | ||
<div class="pull-xs-right"> | ||
<% if user_signed_in? %> | ||
<% if current_user.avatar.blank? %> | ||
<%= current_user.email %> | ||
<% else %> | ||
<%= image_tag(current_user.avatar, width: '40', alt: current_user.email) %> | ||
<% end %> | ||
<% else %> | ||
<%= link_to( | ||
image_tag("google/glogin.png", size: "193x48"), | ||
user_google_oauth2_omniauth_authorize_path, | ||
title: "Sign in with Google" | ||
) %> | ||
<% end %> | ||
</div> | ||
</div> | ||
</nav> <!-- /navbar --> |