Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
316 commits
Select commit Hold shift + click to select a range
6eea338
replaced instances of 'let' with 'var' in js files. rails' asset pipe…
briri Jun 15, 2017
cabe91c
Merge pull request #428 from CDLUC3/CDL-MVP
briri Jun 15, 2017
a547a03
replaced instances of 'let' with 'var' in js files. rails' asset pipe…
briri Jun 15, 2017
f80665b
Merge pull request #429 from CDLUC3/CDL-MVP
briri Jun 15, 2017
ba94573
switched remaining 'let' in JS to 'var'
briri Jun 15, 2017
f5fdff1
Merge pull request #430 from CDLUC3/CDL-MVP
briri Jun 15, 2017
834feb5
fix the nil error for notification preferences
bhavi Jun 16, 2017
f5c545d
fix the styling of button on edit profile page
bhavi Jun 16, 2017
f46e089
remove byebug
bhavi Jun 16, 2017
a698c05
add checkbox label styles
bhavi Jun 16, 2017
dcb4e0e
Added public DMPs page
briri Jun 16, 2017
a5d7982
added public DMP export file. its a duplicate of the regular plan PDF…
briri Jun 16, 2017
8d7a210
fixed merge conflicts
briri Jun 16, 2017
c29bf85
added check for undefined org
briri Jun 16, 2017
7598824
Merge branch 'public-plans' into CDL-MVP
briri Jun 16, 2017
5f8ae07
Merge pull request #432 from CDLUC3/CDL-MVP
briri Jun 16, 2017
d25177c
added check for nil owner
briri Jun 16, 2017
caca5ad
Merge branch 'public-plans' into CDL-MVP
briri Jun 16, 2017
82e6544
Merge pull request #433 from CDLUC3/CDL-MVP
briri Jun 16, 2017
5c38404
fixed routing tests
briri Jun 16, 2017
72c01ad
Merge pull request #435 from CDLUC3/CDL-MVP
briri Jun 16, 2017
c536e4c
changed text for plan titles on view plans and public dmps page. adde…
briri Jun 16, 2017
9359d78
Merge pull request #437 from CDLUC3/CDL-MVP
briri Jun 16, 2017
af1c44f
updated plan visibility language
briri Jun 19, 2017
1dfaa29
Merge pull request #440 from CDLUC3/CDL-MVP
briri Jun 19, 2017
fd3113a
fixed minor css issue and updated shib-ds page's column lengths
briri Jun 19, 2017
2fb9646
added initial edit plan redesign and refactored css so that the files…
briri Jun 19, 2017
bafa9c9
move the user profile tabs into separate forms
bhavi Jun 22, 2017
992185e
css rewrite
briri Jun 22, 2017
3b8948f
moved jquery css into vendor directory
briri Jun 22, 2017
5d2fd8a
added accordion styling and js
briri Jun 22, 2017
87dfb19
css tweaks to guidance pages
briri Jun 22, 2017
3d35cde
Merge pull request #57 from DMPRoadmap/development
briri Jun 23, 2017
2736a23
fixed rebase conflict
briri Jun 23, 2017
b88da9f
Merge branch 'development' of https://github.com/CDLUC3/roadmap into …
briri Jun 23, 2017
8a68a5a
fixed merge conflicts
briri Jun 23, 2017
3ee40a6
Merge pull request #454 from CDLUC3/CDL-MVP
briri Jun 23, 2017
31e0a67
rebased with DCC go-live codebase
briri Jun 23, 2017
9c85171
moved js and css files into structured directories
briri Jun 23, 2017
8a283cd
cleaned up references to js files in views
briri Jun 23, 2017
ee67442
had to move jquery timeago back to root, added js for org edit page. …
briri Jun 23, 2017
fafe844
finished css rework on org edit
briri Jun 23, 2017
92ced6f
made toolbar a generic table filter. finished css restyling of users …
briri Jun 23, 2017
05d9644
added old admin.js back in to handle templates page. finsihed css reb…
briri Jun 23, 2017
c469568
include the additional preferences on user profile
bhavi Jun 23, 2017
35c89ec
fix merge conflicts
bhavi Jun 23, 2017
60e055a
started switching template/phase/section pages over to new css
briri Jun 23, 2017
f7a0ac3
fixed name of common Dmproadmap.js in application.rb
briri Jun 23, 2017
d9361f4
removed Dmproadmap.js so that we can readd as dmproadmap.js ... git a…
briri Jun 23, 2017
bfc3b7f
readded Dmproadmap.js as dmproadmap.js
briri Jun 23, 2017
532a105
fixed issure with public plans table filter
briri Jun 23, 2017
1337bb6
updated shibboleth-ds page so that column layouts are same size
briri Jun 26, 2017
b716c6f
move Orcid styling to roadmap-form css file
bhavi Jun 26, 2017
d81e0d9
added new roadmap logo. started applying new css to plan edit page
briri Jun 26, 2017
e13e062
Merge pull request #466 from CDLUC3/CDL-MVP
briri Jun 26, 2017
c0f5266
saving password details separately
bhavi Jun 27, 2017
bb828e6
fix merge conflicts
bhavi Jun 27, 2017
7b5ebc0
updated column positions, project title lengths, and action item into…
briri Jun 27, 2017
a921408
Merge branch 'CDL-MVP' of https://github.com/CDLUC3/roadmap into CDL-MVP
briri Jun 27, 2017
aad0417
Merge pull request #471 from CDLUC3/CDL-MVP
briri Jun 27, 2017
ba7e8e0
Fixed test broken by new CSS changes and the removal of a few unessec…
briri Jun 27, 2017
d4e0219
Merge pull request #472 from CDLUC3/CDL-MVP
briri Jun 27, 2017
6ab65a5
Merge pull request #58 from DMPRoadmap/development
briri Jun 27, 2017
d62b6ca
fixed merge conflicts
briri Jun 27, 2017
c213ca1
switched guidance update to return to edit page instead of show
briri Jun 27, 2017
e195969
Merge pull request #473 from CDLUC3/CDL-MVP
briri Jun 27, 2017
02c88cb
some minor bug fixes
briri Jun 28, 2017
e09a01a
removed timer from dropdown display and tweaked css instead so that m…
briri Jun 28, 2017
34e6a7b
fix format error on Plan copy
bhavi Jun 28, 2017
fb85066
fix update_password form
bhavi Jun 28, 2017
6b74506
fixed issues with plan edit/share/export and updated to work with new…
briri Jun 28, 2017
3d79033
fixed merge conflict
briri Jun 28, 2017
cacf49a
remove prefs from registrations controller, as its refered in users
bhavi Jun 28, 2017
03c26b6
updated edit profile to use new css
briri Jun 28, 2017
9a2d423
Merge branch 'CDL-MVP' of https://github.com/CDLUC3/roadmap into CDL-MVP
briri Jun 28, 2017
783fe5e
updated plan edit save so that it doesn't throw an error about visibi…
briri Jun 28, 2017
e1fabde
Merge pull request #477 from CDLUC3/CDL-MVP
briri Jun 28, 2017
cce15c0
update the js on profile page
bhavi Jun 29, 2017
2abb494
added error to create plan for instances when user has not selected a…
briri Jun 29, 2017
ff637d1
prevent omniauth id being attached to multiple user records
bhavi Jun 29, 2017
5f2ede0
added popover js. updated edit template details form to new css
briri Jun 29, 2017
bd3c400
replaced empty labels next to submit buttons with div spacers
briri Jun 29, 2017
734d61e
add the selected tab name to form
bhavi Jun 29, 2017
8b2f2e3
updated styling so buttons at top right of accordion section display …
briri Jun 29, 2017
0dcb75f
Merge branch 'CDL-MVP' of https://github.com/CDLUC3/roadmap into CDL-MVP
briri Jun 29, 2017
7447cd1
load the selected user profile tab after page reload
bhavi Jun 29, 2017
6483dc7
Merge branch 'CDL-MVP' of https://github.com/CDLUC3/roadmap into CDL-MVP
bhavi Jun 29, 2017
c27c98f
replaced all of the old ? help boxes with fontawesome question marks
briri Jun 29, 2017
bee53e8
Merge branch 'CDL-MVP' of https://github.com/CDLUC3/roadmap into CDL-MVP
briri Jun 29, 2017
05414aa
Merge pull request #478 from CDLUC3/CDL-MVP
briri Jun 29, 2017
fbb03f0
Minor cosmetic fixes on User profile
bhavi Jun 30, 2017
721c4e4
Merge branch 'CDL-MVP' of https://github.com/CDLUC3/roadmap into CDL-MVP
bhavi Jun 30, 2017
7a4a692
fixed bug in omniauth controllers and added test
briri Jun 30, 2017
7100ae9
fixed merge conflict
briri Jun 30, 2017
125efd2
Merge pull request #482 from CDLUC3/CDL-MVP
briri Jun 30, 2017
6d3790a
set default plan visibility to 'private'
briri Jun 30, 2017
8164495
Merge pull request #484 from CDLUC3/CDL-MVP
briri Jun 30, 2017
f2cef44
adjust orcid logo on user profile page
bhavi Jun 30, 2017
d67b982
adjust orcid logo on user profile page
bhavi Jun 30, 2017
44139bf
Merge branch 'CDL-MVP' of https://github.com/CDLUC3/roadmap into CDL-MVP
bhavi Jun 30, 2017
3d6bf3f
two minor CSS changes. one to set input height due to IE display issu…
briri Jun 30, 2017
31e487a
Merge branch 'CDL-MVP' of https://github.com/CDLUC3/roadmap into CDL-MVP
briri Jun 30, 2017
6fe54f9
Merge pull request #486 from CDLUC3/CDL-MVP
briri Jun 30, 2017
a966f96
added 'mock project' checkbox to create plan page. css restyling of c…
briri Jun 30, 2017
89fccdc
removed create test plan link from view plans page DMPRoadmap/roadmap…
briri Jun 30, 2017
b685c16
Merge pull request #487 from CDLUC3/CDL-MVP
briri Jun 30, 2017
c07d78f
fixed bu in plans.controller, added new fields to attr_accessible on …
briri Jul 3, 2017
1a333ac
reverted permission changes so that a user cannot grant permissions t…
briri Jul 3, 2017
e9cfb7f
added question_options to answer's deep copy method and added a unit …
briri Jul 3, 2017
896865c
fixed typo
briri Jul 3, 2017
f265de3
Merge pull request #488 from CDLUC3/CDL-MVP
xsrust Jul 5, 2017
d470878
began adding aria tags to fontawesome icons. added alt tags to images…
briri Jul 5, 2017
3182470
added aria tags to modals according to #496
xsrust Jul 6, 2017
10c5127
removed depricated projects files
xsrust Jul 6, 2017
0e690d6
updated default -color based on DMPRoadmap/roadmap#127 began making m…
briri Jul 6, 2017
1c81bf0
updated create plan to show autocomplete errors on blur DMPRoadmap/ro…
briri Jul 6, 2017
6420520
Updated forms.scss so that multi-select boxes display multiple rows
briri Jul 6, 2017
a12555c
added aria tags to all fontawesome icons DMPRoadmap/roadmap#139
briri Jul 6, 2017
0735f06
added 'role=button' to popover links DMPRoadmap/roadmap#138
briri Jul 6, 2017
67e08f4
started implementing new nav bar DMProadmap/roadmap#161
briri Jul 6, 2017
8cad2df
-Replaced wrong parameter names since it is expected contact_us_conta…
Jul 7, 2017
265f4d6
Merge pull request #502 from DigitalCurationCentre/issue483
briri Jul 7, 2017
c9a50fe
Updated global navigation per DMPRoadmap/roadmap#161. Also updated pl…
briri Jul 7, 2017
eacc3f5
Updated header to use white background by default and updated to use …
briri Jul 7, 2017
7500e47
fixed broken test created by change in dashboard page title. updated …
briri Jul 7, 2017
75febcb
moved institution logo so that it replaces roadmap logo and updated d…
briri Jul 7, 2017
8ebd6f6
fixed issue with language dropdown color DMPRoadmap/roadmap#161
briri Jul 7, 2017
5e88685
Fixed layout issues on org details page
briri Jul 7, 2017
f9a2823
Merge pull request #59 from DMPRoadmap/CDL-MVP
briri Jul 7, 2017
c0315d8
updated label.required to display an asterisk before the label. updat…
briri Jul 7, 2017
126f008
fixed broken test for resizing org logos
briri Jul 7, 2017
f730850
added generic success message and updated controllers to use it DMPRo…
briri Jul 7, 2017
3129e6a
fixed issue with Shib logout url
briri Jul 7, 2017
61123b1
updated tests to work with new standardized success messages DMPRoadm…
briri Jul 7, 2017
31cc3e6
updated controllers to use alert instead of notice for errors DMPRoad…
briri Jul 7, 2017
e11570d
fixed tests DMPRoadmap/roadmap#175
briri Jul 7, 2017
07b00d5
standardized placement of error and notification messages DMPRoadmap/…
briri Jul 7, 2017
749fcd0
Adds copy template option #148
bozltd Jul 10, 2017
9d72b08
added role tags to buttons throughout the site, addresses #138
xsrust Jul 10, 2017
f886fda
Change flash notice to alert for error
bozltd Jul 10, 2017
0208761
Merge pull request #504 from DigitalCurationCentre/kmcgre/CDL-MVP
vyruss Jul 10, 2017
c208d41
Merge pull request #499 from DigitalCurationCentre/xsrust/mvp
vyruss Jul 10, 2017
1ca4e2f
made adjustments to success message logic
briri Jul 10, 2017
ec939ac
Fixed bug with index.js location
briri Jul 10, 2017
95161b1
removed unecessary user_signed_in? check
briri Jul 10, 2017
14edeaa
ran gettext:find and gettext:po_to_json
briri Jul 10, 2017
3fd1ce1
switch flash[:notice] to flash[:alert]
briri Jul 10, 2017
d1e52ec
Merge branch 'CDL-MVP' into CDL-MVP
briri Jul 10, 2017
340d021
fixed tests broken by switch from flash[:notice] to flash[:alert]
briri Jul 10, 2017
2abb2eb
Merge remote-tracking branch 'upstream/CDL-MVP' into xsrust/138
xsrust Jul 11, 2017
40b94c9
fixes formatting errors
xsrust Jul 11, 2017
6e3ff0c
Merge pull request #506 from DigitalCurationCentre/xsrust/138
vyruss Jul 11, 2017
3ae6c30
FormHelpers for registrations views. DMPRoadmap/roadmap#483
Jul 11, 2017
b02b9e6
Merge branch 'CDL-MVP' into issue483
Jul 11, 2017
0edaf36
Merge pull request #508 from DigitalCurationCentre/issue483
xsrust Jul 11, 2017
7f6de76
Merge branch 'CDL-MVP' into CDL-MVP
briri Jul 11, 2017
131cef1
Merge pull request #503 from CDLUC3/CDL-MVP
briri Jul 11, 2017
4df5293
Merge pull request #60 from DMPRoadmap/CDL-MVP
briri Jul 11, 2017
60a01a3
started refactoring the edit project details page DMPRoadmap/roadmap#491
briri Jul 11, 2017
211e918
fixed merge conflict and set max width to h1 tags to prevent overlap …
briri Jul 11, 2017
7e4fc99
finished up project details page
briri Jul 11, 2017
46e3c67
started work on share plan page DMPRoadmap/roadmap#497
briri Jul 11, 2017
0405973
updated preferences to use JSON hash and be contained in a new model,…
xsrust Jul 12, 2017
20b2460
fixes broken tests
xsrust Jul 12, 2017
d13bdf9
Merge pull request #509 from DigitalCurationCentre/xsrust/481
vyruss Jul 12, 2017
c81dfe0
Merge pull request #61 from DMPRoadmap/CDL-MVP
briri Jul 12, 2017
67b1b49
ran db:migrate
briri Jul 12, 2017
a3bc7a2
fixed merge conflicts in db/schema.rb
briri Jul 12, 2017
0560ba4
finished up share plan page.
briri Jul 12, 2017
fc3c47f
popover and tooltip triggered by focus and hover. DMPRoadmap/roadmap#141
Jul 13, 2017
067326e
Merge pull request #511 from DigitalCurationCentre/issue141
vyruss Jul 13, 2017
b5007bc
finished plan share and edit pages. Updated styling and handling or a…
briri Jul 13, 2017
5580e03
Merge pull request #62 from DMPRoadmap/CDL-MVP
briri Jul 13, 2017
7c4c29e
Merge branch 'plan-details-share' into CDL-MVP
briri Jul 13, 2017
42bea42
fixed test broken by switch of Role update from html to json
briri Jul 13, 2017
ec1d80b
made suggested changes from PR
briri Jul 14, 2017
70b94e8
updated text on project details page
briri Jul 14, 2017
efa760b
fixed issues with tests
briri Jul 14, 2017
c3df594
Set focus to response messages #135
kmcgre Jul 17, 2017
37fa028
Merge pull request #512 from CDLUC3/CDL-MVP
xsrust Jul 17, 2017
c79a5ce
updated view for show_export and controller according to #498
xsrust Jul 17, 2017
6dd549b
Merge branch 'CDL-MVP' of https://github.com/DMPRoadmap/roadmap into …
xsrust Jul 17, 2017
eb54005
updated active tab to use -text-color instead of
briri Jul 17, 2017
7e2bca2
fixed issue with accessible auto complete errors DMPRoadmap/roadmap#408
briri Jul 17, 2017
cacc90a
fixed issue with accessible auto complete errors DMPRoadmap/roadmap#408
briri Jul 17, 2017
8670680
updated text per DMPRoadmap/roadmap#405
briri Jul 17, 2017
09120c3
added default error messge for automcomplete combobox
briri Jul 17, 2017
11118e3
Merge remote-tracking branch 'upstream/CDL-MVP' into kmcgre/CDL-MVP
kmcgre Jul 18, 2017
e6c322d
Move toggleFormElementError to forms.js
kmcgre Jul 18, 2017
8a8d1c9
fixed issue with tests
briri Jul 18, 2017
cae60c9
Merge pull request #514 from DigitalCurationCentre/kmcgre/CDL-MVP
briri Jul 18, 2017
3f141f6
fixed merge conflicts
briri Jul 18, 2017
4f4076b
Merge branch 'DMPRoadmap-CDL-MVP' into CDL-MVP
briri Jul 18, 2017
1fae810
started work on plan write redesign
briri Jul 18, 2017
a8737c9
switched test plan visibility back to 'private' instead of 'N/A'
briri Jul 18, 2017
6db759e
updated export views to impliment the logic from the new downloads pa…
xsrust Jul 19, 2017
fc34e5a
Merge branch 'CDL-MVP' of https://github.com/DMPRoadmap/roadmap into …
xsrust Jul 19, 2017
876cfc7
Merge pull request #515 from CDLUC3/CDL-MVP
vyruss Jul 19, 2017
e7d3d3a
updated test to work
xsrust Jul 19, 2017
4c16a63
re-instated un-intentionally edited file, fixed spacing
xsrust Jul 19, 2017
9c36477
had accidentally committed different primary-color to stylesheet
xsrust Jul 19, 2017
d613a13
bugfix for #474
xsrust Jul 19, 2017
fd8518b
typo
xsrust Jul 19, 2017
a98101d
Merge pull request #520 from DigitalCurationCentre/xsrust/mvp
vyruss Jul 19, 2017
db928dd
added active flag to roles
xsrust Jul 19, 2017
9c00931
Merge pull request #64 from DMPRoadmap/CDL-MVP
briri Jul 19, 2017
b8c1b5c
separate write plan page logic into new partials DMPRoadmap/roadmap#494
briri Jul 19, 2017
9309416
Merge branch 'CDL-MVP' into write-plan
briri Jul 19, 2017
2e9efa4
fixed bug with combobox error messaging DMPRoadmap/roadmap#408
briri Jul 19, 2017
5342ffb
Merge branch 'CDL-MVP' into write-plan
briri Jul 19, 2017
94834fe
Merge pull request #519 from DigitalCurationCentre/xsrust/498
briri Jul 19, 2017
6a1e258
initial redesign of write plan page DMPRoadmap/roadmap#494
briri Jul 19, 2017
472d63f
added ability for users to remove themselves from plans, without dest…
xsrust Jul 20, 2017
9e6af79
merge with cdlmvp
xsrust Jul 20, 2017
6d7fe05
updated policy code to work(replaced where with find_by)
xsrust Jul 20, 2017
89bed99
updated public pdf export #492
xsrust Jul 20, 2017
a2b80dd
Merge pull request #522 from CDLUC3/CDL-MVP
vyruss Jul 20, 2017
1b50ad7
added shib eds files for stage server
briri Jul 20, 2017
825ac12
Merge pull request #65 from DMPRoadmap/CDL-MVP
briri Jul 20, 2017
1885143
fixed alignment of page title/descriptions. Also fixed some styling i…
briri Jul 20, 2017
f92fa44
Merge branch 'CDL-MVP' of https://github.com/CDLUC3/roadmap into CDL-MVP
briri Jul 20, 2017
44e1886
Merge branch 'CDL-MVP' into write-plan
briri Jul 20, 2017
3f04417
fixed styling issues on comments tab. updated section title to use pr…
briri Jul 20, 2017
8dad99d
finished up rework of write plan page DMPRoadmap/roadmap#494
briri Jul 20, 2017
0234b67
commented out broken test that examines the content of js.erb. We wil…
briri Jul 20, 2017
e321dc9
Create Account: Fix styling/code issues for Organisation dropdown #518
kmcgre Jul 21, 2017
b0b8a0d
changed name of action and added requirement to share action that onl…
xsrust Jul 21, 2017
bff6754
added function comment
vyruss Jul 21, 2017
10a867b
Merge pull request #523 from DigitalCurationCentre/xsrust/mvp
briri Jul 21, 2017
50eb5d9
Merge branch 'CDL-MVP' into CDL-MVP
vyruss Jul 21, 2017
3a12f00
Merge pull request #528 from CDLUC3/CDL-MVP
vyruss Jul 21, 2017
d8f6387
Made labels not bold & removed colons for #424
Jul 21, 2017
1d62149
updated policy name #242
xsrust Jul 24, 2017
e727ed9
Merge remote-tracking branch 'upstream/CDL-MVP' into xsrust/mvp
xsrust Jul 24, 2017
21928b5
Merge pull request #537 from DigitalCurationCentre/xsrust/mvp
vyruss Jul 24, 2017
e8e61ba
init coverpage for public export #436
xsrust Jul 24, 2017
91b0583
patch for public export auth
xsrust Jul 24, 2017
9f0f0b4
patch for public export auth
xsrust Jul 24, 2017
4922ad0
Merge pull request #538 from DigitalCurationCentre/auth_fix
briri Jul 24, 2017
cb1704e
Merge pull request #539 from DigitalCurationCentre/vyruss/bugfixes
briri Jul 24, 2017
8d272cf
Merge pull request #529 from DigitalCurationCentre/kmcgre/CDL-MVP
briri Jul 24, 2017
f436fff
#436 added discussed changes to coversheet.
xsrust Jul 25, 2017
b35fd25
created template pdf pages, moved public pages to new controller, rev…
xsrust Jul 26, 2017
6cc9b7b
fixup plan and template policies
xsrust Jul 26, 2017
04e4ffa
updated display logic on public plan pdf export #436
xsrust Jul 26, 2017
dbcc008
merge with cdl-mvp
xsrust Jul 27, 2017
741c92e
forgot part of merge conflict
xsrust Jul 27, 2017
55fcce2
Make organisation mandatory for register form #518
kmcgre Jul 27, 2017
a4b0b17
Merge pull request #543 from DigitalCurationCentre/xsrust/mvp
briri Jul 27, 2017
f299cc8
Merge pull request #544 from DigitalCurationCentre/kmcgre/CDL-MVP
briri Jul 27, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ db/data.yml

# Ignore the test DB
db/test.sqlite3
db/test.sqlite3-journal

# Ignore the SimpleCov output
coverage
Expand Down Expand Up @@ -64,4 +65,4 @@ config/initializers/wicked_pdf.rb

# ignore auto-generated gettext files when running gettext:find
config/locale/*/app.edit.po
config/locale/*/app.po.time_stamp
config/locale/*/app.po.time_stamp
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ gem 'sass-rails'
gem 'less-rails' # WE SHOULD PROBABLY USE SASS OR LESS NOT BOTH
gem 'jquery-rails'
gem 'font-awesome-rails'
gem 'twitter-bootstrap-rails', '2.2.8'
gem 'tinymce-rails' # WYSIWYG EDITOR
gem 'contact_us', '>= 1.2.0' # COULD BE EASILY REPLACED WITH OUR OWN CODE
gem 'recaptcha', '>= 4.0'
Expand Down
8 changes: 1 addition & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ GEM
activerecord (>= 3.1)
less (2.6.0)
commonjs (~> 0.2.7)
less-rails (2.7.1)
less-rails (2.8.0)
actionpack (>= 4.0)
less (~> 2.6.0)
sprockets (> 2, < 4)
Expand Down Expand Up @@ -322,11 +322,6 @@ GEM
tilt (2.0.5)
tinymce-rails (4.4.3)
railties (>= 3.1.1)
twitter-bootstrap-rails (2.2.8)
actionpack (>= 3.1)
execjs
rails (>= 3.1)
railties (>= 3.1)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (3.0.2)
Expand Down Expand Up @@ -399,7 +394,6 @@ DEPENDENCIES
therubyracer (>= 0.11.4)
thin
tinymce-rails
twitter-bootstrap-rails (= 2.2.8)
uglifier
web-console (~> 2.0)
webmock
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Roadmap is a Ruby on Rails application and you will need to have:
* Rails >= 4.2
* MySql >= 5.0 OR PostgreSql

#### Migrating data from a running instance of DMPOnline_v4 or DMPTool
Migration instructions will be coming soon
Further detail on how to install Ruby on Rails applications are available from the Ruby on Rails site: http://rubyonrails.org

Further details on how to install MySQL and create your first user and database. Be sure to follow the instructions for your particular environment.
* Install: http://dev.mysql.com/downloads/mysql/
Expand Down
22 changes: 12 additions & 10 deletions app/controllers/annotations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def admin_create
guid_save = guidance.present? ? guidance.save : true

if ex_save && guid_save
redirect_to admin_show_phase_path(id: @question.section.phase_id, section_id: @question.section_id, question_id: @question.id, edit: 'true'), notice: _('Information was successfully created.')
typ = (example_answer.present? && guidance.present? ? 'example answer and guidance' : (guidance.present? ? 'guidance' : 'example answer'))
redirect_to admin_show_phase_path(id: @question.section.phase_id, section_id: @question.section_id, question_id: @question.id, edit: 'true'), notice: success_message(typ, _('created'))
else
@section = @question.section
@phase = @section.phase
Expand All @@ -27,12 +28,12 @@ def admin_create
@section_id = @section.id
@question_id = @example_answer.question
if !ex_save && !guid_save
flash[:notice] = failed_create_error(example_answer, _('example answer')) + '\n' +
flash[:alert] = failed_create_error(example_answer, _('example answer')) + '\n' +
failed_create_error(gudiance, _('guidance'))
elsif !guid_save
flash[:notice] = failed_create_error(gudiance, _('guidance'))
flash[:alert] = failed_create_error(gudiance, _('guidance'))
elsif !ex_save
flash[:notice] = failed_create_error(example_answer, _('example answer'))
flash[:alert] = failed_create_error(example_answer, _('example answer'))
end
render "phases/admin_show"
end
Expand Down Expand Up @@ -74,15 +75,16 @@ def admin_update
@section = @question.section
@phase = @section.phase
if ex_save && guid_save
redirect_to admin_show_phase_path(id: @phase.id, section_id: @section.id, question_id: @question.id, edit: 'true'), notice: _('Information was successfully updated.')
typ = (example_answer.present? && guidance.present? ? 'example answer and guidance' : (guidance.present? ? 'guidance' : 'example answer'))
redirect_to admin_show_phase_path(id: @phase.id, section_id: @section.id, question_id: @question.id, edit: 'true'), notice: success_message(typ, _('saved'))
else
if !ex_save && !guid_save
flash[:notice] = failed_create_error(example_answer, _('example answer')) + '\n' +
flash[:alert] = failed_create_error(example_answer, _('example answer')) + '\n' +
failed_create_error(gudiance, _('guidance'))
elsif !guid_save
flash[:notice] = failed_create_error(gudiance, _('guidance'))
flash[:alert] = failed_create_error(gudiance, _('guidance'))
elsif !ex_save
flash[:notice] = failed_create_error(example_answer, _('example answer'))
flash[:alert] = failed_create_error(example_answer, _('example answer'))
end
render action: "phases/admin_show"
end
Expand All @@ -96,9 +98,9 @@ def admin_destroy
@section = @question.section
@phase = @section.phase
if @example_answer.destroy
redirect_to admin_show_phase_path(id: @phase.id, section_id: @section.id, edit: 'true'), notice: _('Information was successfully deleted.')
redirect_to admin_show_phase_path(id: @phase.id, section_id: @section.id, edit: 'true'), notice: success_message(_('information'), _('deleted'))
else
redirect_to admin_show_phase_path(id: @phase.id, section_id: @section.id, edit: 'true'), notice: flash[:notice] = failed_destroy_error(@example_answer, _('example answer'))
redirect_to admin_show_phase_path(id: @phase.id, section_id: @section.id, edit: 'true'), notice: flash[:alert] = failed_destroy_error(@example_answer, _('example answer'))
end
end

Expand Down
6 changes: 5 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ApplicationController < ActionController::Base

def user_not_authorized
if user_signed_in?
redirect_to plans_url, notice: _('You are not authorized to perform this action.')
redirect_to plans_url, alert: _('You are not authorized to perform this action.')
else
redirect_to root_url, alert: _('You need to sign in or sign up before continuing.')
end
Expand Down Expand Up @@ -80,6 +80,10 @@ def failed_update_error(obj, obj_name)
def failed_destroy_error(obj, obj_name)
"#{_('Could not delete the %{o}.') % {o: obj_name}} #{errors_to_s(obj)}"
end

def success_message(obj_name, action)
"#{_('Successfully %{action} your %{object}.') % {object: obj_name, action: action}}"
end

private
# Override rails default render action to look for a branded version of a
Expand Down
16 changes: 8 additions & 8 deletions app/controllers/guidance_groups_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def admin_create
end

if @guidance_group.save
redirect_to admin_index_guidance_path, notice: _('Guidance group was successfully created.')
redirect_to admin_index_guidance_path, notice: success_message(_('guidance group'), _('created'))
else
flash[:notice] = failed_create_error(@guidance_group, _('guidance group'))
flash[:alert] = failed_create_error(@guidance_group, _('guidance group'))
render 'admin_new'
end
end
Expand All @@ -50,9 +50,9 @@ def admin_update
@guidance_group.published = true unless params[:save_publish].nil?

if @guidance_group.update_attributes(params[:guidance_group])
redirect_to admin_index_guidance_path(params[:guidance_group]), notice: _('Guidance group was successfully updated.')
redirect_to admin_index_guidance_path(params[:guidance_group]), notice: success_message(_('guidance group'), _('saved'))
else
flash[:notice] = failed_update_error(@guidance_group, _('guidance group'))
flash[:alert] = failed_update_error(@guidance_group, _('guidance group'))
render 'admin_edit'
end
end
Expand All @@ -66,9 +66,9 @@ def admin_update_publish
@guidance_group.published = true

if @guidance_group.update_attributes(params[:guidance_group])
redirect_to admin_index_guidance_path(params[:guidance_group]), notice: _('Guidance group was successfully updated.')
redirect_to admin_index_guidance_path(params[:guidance_group]), notice: success_message(_('guidance group'), _('saved'))
else
redirect_to admin_index_guidance_path(@guidance_group), notice: failed_update_error(@guidance_group, _('guidance group'))
redirect_to admin_index_guidance_path(@guidance_group), alert: failed_update_error(@guidance_group, _('guidance group'))
end
end

Expand All @@ -79,9 +79,9 @@ def admin_destroy
@guidance_group = GuidanceGroup.find(params[:id])
authorize @guidance_group
if @guidance_group.destroy
redirect_to admin_index_guidance_path, notice: _('Guidance group was successfully deleted.')
redirect_to admin_index_guidance_path, notice: success_message(_('guidance group'), _('deleted'))
else
redirect_to admin_index_guidance_path, notice: failed_destroy_error(@guidance_group, _('guidance group'))
redirect_to admin_index_guidance_path, alert: failed_destroy_error(@guidance_group, _('guidance group'))
end
end

Expand Down
30 changes: 12 additions & 18 deletions app/controllers/guidances_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@ def admin_index
@guidance_groups = GuidanceGroup.where(org_id: current_user.org_id)
end

##
# GET /guidances/1
def admin_show
@guidance = Guidance.eager_load(:guidance_group, :themes).find(params[:id])
authorize @guidance
end

def admin_new
@guidance = Guidance.new
authorize @guidance
@themes = Theme.all.order('title')
@guidance_groups = GuidanceGroup.where(org_id: current_user.org_id).order('name ASC')
end
end

##
# GET /guidances/1/edit
Expand All @@ -46,9 +39,9 @@ def admin_create
end

if @guidance.save
redirect_to admin_show_guidance_path(@guidance), notice: _('Guidance was successfully created.')
redirect_to admin_edit_guidance_path(@guidance), notice: success_message(_('guidance'), _('created'))
else
flash[:notice] = failed_create_error(@guidance, _('guidance'))
flash[:alert] = failed_create_error(@guidance, _('guidance'))
@themes = Theme.all.order('title')
@guidance_groups = GuidanceGroup.where(org_id: current_user.org_id).order('name ASC')
render action: "admin_new"
Expand All @@ -58,13 +51,14 @@ def admin_create
##
# PUT /guidances/1
def admin_update
@guidance = Guidance.find(params[:id])
@guidance = Guidance.find(params[:id])
authorize @guidance
@guidance.text = params["guidance-text"]
@guidance.text = params["guidance-text"]

if @guidance.update_attributes(guidance_params)
redirect_to admin_show_guidance_path(params[:guidance]), notice: _('Guidance was successfully updated.')
redirect_to admin_edit_guidance_path(params[:guidance]), notice: success_message(_('guidance'), _('saved'))
else
flash[:notice] = failed_update_error(@guidance, _('guidance'))
flash[:alert] = failed_update_error(@guidance, _('guidance'))
@themes = Theme.all.order('title')
@guidance_groups = GuidanceGroup.where(org_id: current_user.org_id).order('name ASC')

Expand All @@ -75,14 +69,14 @@ def admin_update
##
# DELETE /guidances/1
def admin_destroy
@guidance = Guidance.find(params[:id])
@guidance = Guidance.find(params[:id])
authorize @guidance
if @guidance.destroy
redirect_to admin_index_guidance_path, notice: _('Guidance was successfully deleted.')
redirect_to admin_index_guidance_path, notice: success_message(_('guidance'), _('deleted'))
else
redirect_to admin_index_guidance_path, notice: failed_destroy_error(@guidance, _('guidance'))
redirect_to admin_index_guidance_path, alert: failed_destroy_error(@guidance, _('guidance'))
end
end
end


private
Expand Down
6 changes: 3 additions & 3 deletions app/controllers/notes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def create

if @note.save
@status = true
@notice = _('Comment was successfully created.')
@notice = success_message(_('comment'), _('created'))
else
@status = false
@notice = failed_create_error(@note, _('note'))
Expand All @@ -55,7 +55,7 @@ def update
@plan = @answer.plan

if @note.update_attributes(params[:note])
@notice = _('Comment was successfully saved.')
@notice = success_message(_('comment'), _('saved'))
else
@notice = failed_update_error(@note, _('note'))
end
Expand All @@ -74,7 +74,7 @@ def archive
@plan = @answer.plan

if @note.update_attributes(params[:note])
@notice = _('Comment removed.')
@notice = success_message(_('comment'), _('removed'))
else
@notice = failed_destroy_error(@note, _('note'))
end
Expand Down
58 changes: 47 additions & 11 deletions app/controllers/orgs_controller.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
class OrgsController < ApplicationController
after_action :verify_authorized
after_action :verify_authorized, except: ['shibboleth_ds', 'shibboleth_ds_passthru']
respond_to :html

##
# GET /organisations/1
def admin_show
@org = Org.find(params[:id])
authorize @org
end

##
# GET /organisations/1/edit
def admin_edit
Expand All @@ -28,22 +21,65 @@ def admin_update

begin
if @org.update_attributes(org_params)
redirect_to admin_show_org_path(params[:id]), notice: _('Organisation was successfully updated.')
flash[:notice] = success_message(_('organisation'), _('saved'))
render action: "admin_edit"
else
# For some reason our custom validator returns as a string and not a hash like normal activerecord
# errors. We followed the example provided in the Rails guides when building the validator so
# its unclear why its doing this. Placing a check here for the data type. We should reasses though
# when doing a broader eval of the look/feel of the site and we come up with a standardized way of
# displaying errors
flash[:notice] = failed_update_error(@org, _('organisation'))
flash[:alert] = failed_update_error(@org, _('organisation'))
render action: "admin_edit"
end
rescue Dragonfly::Job::Fetch::NotFound => dflye
flash[:notice] = _('There seems to be a problem with your logo. Please upload it again.')
flash[:alert] = _('There seems to be a problem with your logo. Please upload it again.')
render action: "admin_edit"
end
end

# GET /orgs/shibboleth_ds
# ----------------------------------------------------------------
def shibboleth_ds
redirect_to root_path unless current_user.nil?

@user = User.new
# Display the custom Shibboleth discovery service page.
@orgs = Org.joins(:identifier_schemes).where('identifier_schemes.name = ?', 'shibboleth').sort{|x,y| x.name <=> y.name }

if @orgs.empty?
flash[:alert] = _('No institutions are currently registered.')
redirect_to user_shibboleth_omniauth_authorize_path
end
end

# POST /orgs/shibboleth_ds
# ----------------------------------------------------------------
def shibboleth_ds_passthru
if !params[:org_name].blank?
session['org_id'] = params[:org_name]

scheme = IdentifierScheme.find_by(name: 'shibboleth')
shib_entity = OrgIdentifier.where(org_id: params[:org_name], identifier_scheme: scheme)

if !shib_entity.empty?
# Force SSL
url = "#{request.base_url.gsub('http:', 'https:')}#{Rails.application.config.shibboleth_login}"
target = "#{user_shibboleth_omniauth_callback_url.gsub('http:', 'https:')}"

#initiate shibboleth login sequence
redirect_to "#{url}?target=#{target}&entityID=#{shib_entity.first.identifier}"
else
flash[:alert] = _('Your institution does not seem to be properly configured.')
redirect_to shibboleth_ds_path
end

else
flash[:notice] = _('Please choose an institution')
redirect_to shibboleth_ds_path
end
end

private
def org_params
params.require(:org).permit(:name, :abbreviation, :target_url, :is_other, :banner_text, :language_id,
Expand Down
Loading