-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #476 Modifying the contest statistics methods
- Loading branch information
Showing
121 changed files
with
5,012 additions
and
403 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 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,28 @@ | ||
ActiveAdmin.register AdminUser do | ||
permit_params :email, :password, :password_confirmation | ||
|
||
index do | ||
selectable_column | ||
id_column | ||
column :email | ||
column :current_sign_in_at | ||
column :sign_in_count | ||
column :created_at | ||
actions | ||
end | ||
|
||
filter :email | ||
filter :current_sign_in_at | ||
filter :sign_in_count | ||
filter :created_at | ||
|
||
form do |f| | ||
f.inputs "Admin Details" do | ||
f.input :email | ||
f.input :password | ||
f.input :password_confirmation | ||
end | ||
f.actions | ||
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,33 @@ | ||
ActiveAdmin.register_page "Dashboard" do | ||
|
||
menu priority: 1, label: proc{ I18n.t("active_admin.dashboard") } | ||
|
||
content title: proc{ I18n.t("active_admin.dashboard") } do | ||
div class: "blank_slate_container", id: "dashboard_default_message" do | ||
span class: "blank_slate" do | ||
span I18n.t("active_admin.dashboard_welcome.welcome") | ||
small I18n.t("active_admin.dashboard_welcome.call_to_action") | ||
end | ||
end | ||
|
||
# Here is an example of a simple dashboard with columns and panels. | ||
# | ||
# columns do | ||
# column do | ||
# panel "Recent Posts" do | ||
# ul do | ||
# Post.recent(5).map do |post| | ||
# li link_to(post.title, admin_post_path(post)) | ||
# end | ||
# end | ||
# end | ||
# end | ||
|
||
# column do | ||
# panel "Info" do | ||
# para "Welcome to ActiveAdmin." | ||
# end | ||
# end | ||
# end | ||
end # content | ||
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// [Editor cusomization - Story 3.19] | ||
// Enable method "selectpicker" from the javascript file. | ||
// Parameters: none. | ||
// Returns: none. | ||
// Author: Mimi | ||
$(document).ready(function(e){ | ||
$('.selectpicker').selectpicker(); | ||
}); | ||
|
||
// [Editor cusomization - Story 3.19] | ||
// change the theme of the editor. | ||
// Parameters: | ||
// The selected input from the 'theme' drop-downlist. | ||
// Returns: none. | ||
// Author: Mimi | ||
function changeTheme(){ | ||
var new_theme = $('#theme').val(); | ||
editor.setTheme("ace/theme/"+new_theme); | ||
} | ||
|
||
// [Editor cusomization - Story 3.19] | ||
// change the mode of the editor. | ||
// Parameters: | ||
// The selected input from the 'mode' drop-downlist. | ||
// Returns: none. | ||
// Author: Mimi | ||
function changeMode(){ | ||
var new_mode = $('#mode').val(); | ||
edit_session.setMode("ace/mode/"+new_mode); | ||
} | ||
|
||
// [Editor cusomization - Story 3.19] | ||
// change the font-size of the editor. | ||
// Parameters: | ||
// The selected input from the 'font' drop-downlist. | ||
// Returns: none. | ||
// Author: Mimi | ||
function changeFont(){ | ||
var new_font = $('#font').val(); | ||
editor.setFontSize(parseInt(new_font)); | ||
} | ||
|
||
// [Mark Solution - Story 4.29] | ||
// shows the add note button when hovering over the the line | ||
// Parameters: | ||
// id: id of the div that was hovered over | ||
// Returns: none | ||
// Author: Abdullrahman Elhusseny | ||
function show(id){ | ||
id += "add_button" | ||
document.getElementById(id).style.opacity = 1; | ||
} | ||
|
||
// [Mark Solution - Story 4.29] | ||
// hides the add note button when the crusor leaves the the line | ||
// Parameters: | ||
// id: id of the div that was hovered over | ||
// Returns: none | ||
// Author: Abdullrahman Elhusseny | ||
function hide(id){ | ||
id += "add_button" | ||
document.getElementById(id).style.opacity = 0; | ||
} | ||
|
||
// [Mark Solution - Story 4.29] | ||
// pops a dialog box when trying to add or update note | ||
// Parameters: | ||
// id: id of the button that was pressed | ||
// Returns: none | ||
// Author: Abdullrahman Elhusseny | ||
function pop(id){ | ||
id += "form" | ||
document.getElementById(id).style.display = 'initial' | ||
$(document.getElementById(id)).bPopup({ | ||
modalClose: false, | ||
opacity: 0.6, | ||
positionStyle: 'fixed', | ||
speed: 650, | ||
transition: 'slideIn' | ||
}); | ||
} |
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,3 @@ | ||
@showDiv = -> | ||
ocument.getElementById("test").style.display = "" | ||
return |
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/ |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.