-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pull Request: C2_Rania_470_profile_progress_2.12 #601
Closed
Closed
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
58cba1e
Issue #255 edit solutions constraints
b6506c3
Issue #255 edit solutions constraints
5eaa6f7
Issue #255 edit solutions constraints
27fdbfa
Issue #255 commit my change in soultions controller
bb61d04
Merge branch 'master' of https://github.com/alaashafaee/Coolsoft-14 i…
e10ad57
Issue #255 solutions constraints
b4c2c57
Issue #255 solutions constraints documentation
c81f30a
Issue #283 remove solutions constraints
2468aee
Issue #255, edit solutions constraints
adeaff0
Issue #283, remove solutions constraints
e8659e5
Issue #283, remove solutions constraints
2c0cb28
Issue #283, remove solutions constraints
9b7b042
Issue #283, remove solutions constraints
c0ca95b
Issue #283, remove solutions constraints
eb988a0
Issue #283, remove solutions constraints
e4dbd3e
Issue #283, remive solutions constraints
6a962b3
Issue #283, remove solutions constraints
17b1cca
Merge branch 'master' of https://github.com/alaashafaee/Coolsoft-14 i…
d0bf521
Issue #283, remove constraints
467287a
Issue #283, save remove constraints
732a5a1
Issue #317, navbar
2d02582
Issue #283, remove const
00ff1a8
Merge branch 'master' of https://github.com/alaashafaee/Coolsoft-14 i…
477bec4
Issue #470, profile progress view
1d3046e
Issue #470, profile progress view
b7c59db
Issue #470, profile progress view with modifi
873eb7b
#470 commiting for Rspec session
bbbc2d2
Issue #470, profile progress after fix
c294c04
Issue #470, prof progress ..
3a40483
Issue #470, profile..progress
504a2cb
Issue #470, profile..progress
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Place all the behaviors and hooks related to the matching controller here. | ||
# All this logic will automatically be available in application.js. | ||
# You can use CoffeeScript in this file: http://coffeescript.org/ |
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,118 @@ | ||
.line-separator{ | ||
|
||
height:1px; | ||
|
||
background:#717171; | ||
|
||
border-bottom:1px solid #ddd; | ||
|
||
} | ||
|
||
|
||
/* custom inclusion of right, left and below tabs */ | ||
|
||
.tabs-below > .nav-tabs, | ||
.tabs-right > .nav-tabs, | ||
.tabs-left > .nav-tabs { | ||
border-bottom: 0; | ||
} | ||
|
||
.tab-content > .tab-pane, | ||
.pill-content > .pill-pane { | ||
display: none; | ||
} | ||
|
||
.tab-content > .active, | ||
.pill-content > .active { | ||
display: block; | ||
} | ||
|
||
.tabs-below > .nav-tabs { | ||
border-top: 1px solid #ddd; | ||
} | ||
|
||
.tabs-below > .nav-tabs > li { | ||
margin-top: -1px; | ||
margin-bottom: 0; | ||
} | ||
|
||
.tabs-below > .nav-tabs > li > a { | ||
-webkit-border-radius: 0 0 4px 4px; | ||
-moz-border-radius: 0 0 4px 4px; | ||
border-radius: 0 0 4px 4px; | ||
} | ||
|
||
.tabs-below > .nav-tabs > li > a:hover, | ||
.tabs-below > .nav-tabs > li > a:focus { | ||
border-top-color: #ddd; | ||
border-bottom-color: transparent; | ||
} | ||
|
||
.tabs-below > .nav-tabs > .active > a, | ||
.tabs-below > .nav-tabs > .active > a:hover, | ||
.tabs-below > .nav-tabs > .active > a:focus { | ||
border-color: transparent #ddd #ddd #ddd; | ||
} | ||
|
||
.tabs-left > .nav-tabs > li, | ||
.tabs-right > .nav-tabs > li { | ||
float: none; | ||
} | ||
|
||
.tabs-left > .nav-tabs > li > a, | ||
.tabs-right > .nav-tabs > li > a { | ||
min-width: 74px; | ||
min-height: 74px; | ||
margin-right: 0; | ||
margin-bottom: 3px; | ||
} | ||
|
||
.tabs-left > .nav-tabs { | ||
float: left; | ||
margin-right: 19px; | ||
border-right: 1px solid #ddd; | ||
} | ||
|
||
.tabs-left > .nav-tabs > li > a { | ||
margin-right: -1px; | ||
-webkit-border-radius: 4px 0 0 4px; | ||
-moz-border-radius: 4px 0 0 4px; | ||
border-radius: 4px 0 0 4px; | ||
} | ||
|
||
.tabs-left > .nav-tabs > li > a:hover, | ||
.tabs-left > .nav-tabs > li > a:focus { | ||
border-color: #eeeeee #dddddd #eeeeee #eeeeee; | ||
} | ||
|
||
.tabs-left > .nav-tabs .active > a, | ||
.tabs-left > .nav-tabs .active > a:hover, | ||
.tabs-left > .nav-tabs .active > a:focus { | ||
border-color: #ddd transparent #ddd #ddd; | ||
*border-right-color: #ffffff; | ||
} | ||
|
||
.tabs-right > .nav-tabs { | ||
float: right; | ||
margin-left: 19px; | ||
border-left: 1px solid #ddd; | ||
} | ||
|
||
.tabs-right > .nav-tabs > li > a { | ||
margin-left: -1px; | ||
-webkit-border-radius: 0 4px 4px 0; | ||
-moz-border-radius: 0 4px 4px 0; | ||
border-radius: 0 4px 4px 0; | ||
} | ||
|
||
.tabs-right > .nav-tabs > li > a:hover, | ||
.tabs-right > .nav-tabs > li > a:focus { | ||
border-color: #eeeeee #eeeeee #eeeeee #dddddd; | ||
} | ||
|
||
.tabs-right > .nav-tabs .active > a, | ||
.tabs-right > .nav-tabs .active > a:hover, | ||
.tabs-right > .nav-tabs .active > a:focus { | ||
border-color: #ddd #ddd #ddd transparent; | ||
*border-left-color: #ffffff; | ||
} |
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 |
---|---|---|
|
@@ -10,5 +10,6 @@ def show | |
@student = Student.find(params[:id]) | ||
@courses = @student.courses.order("created_at desc") | ||
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<%= link_to "<< Back to list", :controller => 'solutions_constraints', :action => 'index' %> | ||
<h1> Edit Constraints</h1> | ||
<% if params[:type] == "meth" %> | ||
<%= render "edit_method" %> | ||
<%else%> | ||
<%= render "edit_variable" %> | ||
<% 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<h1>Solutions' Constraints</h1> | ||
<p style="color: green"><%= flash[:notice] %></p> | ||
<p style="color: red" ><%= flash[:error] %></p> | ||
<table class = "table table-striped"> | ||
<h3>Methods Constraints</h3> | ||
<tr> | ||
<th>Method Name</th> | ||
</tr> | ||
<% @methods.each do |method| %> | ||
<tr> | ||
<td><%= link_to method.method_name, :controller => 'solutions_constraints', :action => 'show', :id => method.id, :type => 'meth' %></td> | ||
<% end %> | ||
</td> | ||
</tr> | ||
</table> | ||
<table class = "table table-striped"> | ||
<h3>Variables Constraints</h3> | ||
<tr> | ||
<th>Variable Name</th> | ||
</tr> | ||
<% @variables.each do |variable| %> | ||
<tr> | ||
<td><%= link_to variable.variable_name, :controller => 'solutions_constraints', :action => 'show', :id => variable.id, :type => 'var' %></td> | ||
<% end %> | ||
</td> | ||
</tr> | ||
</table> |
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,43 @@ | ||
<%= link_to "<< Back to list", :controller => 'solutions_constraints', :action => 'index' %> | ||
<p style="color: green"><%= flash[:notice] %></p> | ||
<% if params[:type] == "meth" %> | ||
<h3>Method Constraints</h3> | ||
<table class = "table table-striped"> | ||
<tr> | ||
<th>Method Name</th> | ||
<th>Type</th> | ||
</tr> | ||
<tr> | ||
<td><%= @methods.method_name %></td> | ||
</tr> | ||
<tr> | ||
<td><%= @parameters.parameter %></td> | ||
</tr> | ||
<tr> | ||
<td class="actions"> | ||
<%= link_to "Edit", :controller => 'solutions_constraints', :action => 'edit',type:"meth" %> | ||
<%= link_to "Delete", {:action => "destroy_methods"}, method: :delete, data: { confirm: 'Are you sure you want to delete this Constraints?' } %> | ||
</td> | ||
</tr> | ||
</table> | ||
<%else%> | ||
<h3>Variables Constraints</h3> | ||
<table class = "table table-striped"> | ||
<tr> | ||
<th>Variables Name</th> | ||
<th>Type</th> | ||
</tr> | ||
<tr> | ||
<td><%= @variables.variable_name %></td> | ||
<td><%= @variables.variable_type %></td> | ||
</tr> | ||
</table> | ||
|
||
<tr> | ||
<td class="actions"> | ||
<%= link_to "Edit", edit_solutions_constraint_path(@variables, type:"var") %> | ||
<%= link_to "Delete", {:action => "destroy"}, method: :delete, data: { confirm: 'Are you sure you want to delete this Constraints?' } %> | ||
</td> | ||
</tr> | ||
<%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,4 +1,5 @@ | ||
<%= render 'layouts/profile' %> | ||
<ul> | ||
<li class = "active"><a href = "#tab1">Info</a></li> | ||
<li><a href = "#tab2">Performance</a></li> | ||
<li><a href = "#tab3">Statistics</a></li> | ||
|
@@ -13,7 +14,46 @@ | |
<p><b>Joined on: </b><%= current_student.created_at.to_date %></p> | ||
</div> | ||
<div id = "tab2" class = "tab"> | ||
Performance under construction | ||
<div class="tabbable tabs-left"> | ||
<ul class="nav nav-tabs"> | ||
<li class="active"><a href="#a" data-toggle="tab">Course</a></li> | ||
<li><a href="#b" data-toggle="tab">Contest</a></li> | ||
</ul> | ||
<div class="tab-content"> | ||
<div class="tab-pane active" id="a"> | ||
<div> | ||
<h2 align="center">Continue from where you left off</h2><br> | ||
<% next_problems_to_solve = current_student.get_next_problems_to_solve %> | ||
<% next_problems_to_solve.each do |key , value| %> | ||
<%= link_to value.title, | ||
controller: "/problems", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fix indentation |
||
action: "show", | ||
id: value.id %> | ||
<%= key %> | ||
<% end %> | ||
</div><br> | ||
<h2 align="center">Your Progress</h2> | ||
<div style="margin-left: 100px"> | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this empty line necessary? |
||
<% res = current_student.getProblemsStatus %> | ||
<% res[:success].each do |problem| %> | ||
<%= link_to problem.title, | ||
controller: "/problems", | ||
action: "show", | ||
id: problem.id %> | ||
<br><br> | ||
<div class="line-separator"></div> | ||
<br> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="tab-pane" id="b"> | ||
<h2 align="center">Your Progress</h2> | ||
<p>under construction</p> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
<div id = "tab3" class = "tab"> | ||
Statistics under construction | ||
|
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
Binary file not shown.
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix indentation