Open jimtuttle opened 10 years ago
When we tweak the language for this issue to the point that it's acceptable, let's copy it to our other projects. In my mind this is a requirement for all our repository heads.
From Justin Coyne ...
Actually Sufia has an editable content block feature that could probably be extracted and repurposed for this use case.
See: https://github.com/projecthydra/sufia/blob/master/app/views/homepage/_marketing.html.erb https://github.com/projecthydra/sufia/blob/master/app/controllers/concerns/sufia/homepage_controller.rb#L17 https://github.com/projecthydra/sufia/blob/master/app/models/content_block.rb https://github.com/projecthydra/sufia/blob/master/sufia-models/lib/generators/sufia/models/templates/migrations/create_content_blocks.rb https://github.com/projecthydra/sufia/blob/master/app/controllers/content_blocks_controller.rb https://github.com/projecthydra/sufia/blob/master/app/helpers/content_block_helper.rb
Excellent. If not, your suggestion to edit the homepage will work
Jim Tuttle Head, Digital Repository Services Duke University Libraries 919.613.6831tel:919.613.6831
On Sep 3, 2014, at 17:05, "Jim Coble" notifications@github.com<mailto:notifications@github.com> wrote:
From Justin Coyne ...
Actually Sufia has an editable content block feature that could probably be extracted and repurposed for this use case.
See: https://github.com/projecthydra/sufia/blob/master/app/views/homepage/_marketing.html.erb https://github.com/projecthydra/sufia/blob/master/app/controllers/concerns/sufia/homepage_controller.rb#L17 https://github.com/projecthydra/sufia/blob/master/app/models/content_block.rb https://github.com/projecthydra/sufia/blob/master/sufia-models/lib/generators/sufia/models/templates/migrations/create_content_blocks.rb https://github.com/projecthydra/sufia/blob/master/app/controllers/content_blocks_controller.rbhttps://github.com/projecthydra/sufia/blob/master/app/controllers/content_bloc %20ks_contr %20oller.rb https://github.com/projecthydra/sufia/blob/master/app/helpers/content_block_helper.rb
Reply to this email directly or view it on GitHubhttps://github.com/duke-libraries/course-assets/issues/63#issuecomment-54367060.
@jt112 I expect to have an initial version of this alert functionality ready soon. A couple of questions vis-a-vis the display of the message:
BTW, this initial version of the functionality will be pretty limited. There won't be a web interface for creating / maintaining the messages ... it will be done on a command line at the rails console ... but it will at least give us the ability to display an alert on every page. If we like how this works in the DAMS project, we can add it to DDR as well.
I also like the red background. I'd rather the notice not be dismissible as long as the alert doesn't interfere with normal use of the site. If I can be trained to set and remove alerts or if you two are willing to do it then it sounds good me.
Thanks, Jim
@jt112 Sounds good. As soon as the current work is merged, we'll deploy it on dams-dev and you can take a look. I assume we will want a web interface for this sooner rather than later but this is a start. If it works okay, we can add the same functionality to the DDR interface.
A repository administrator should be able to use the GUI to create an alert displayed at the top of each page in the repository. The alert should be noticeable, the text should be customizable, the alert should survive restarts, and the alert should expire at a given time. The repository administrator should also be able to cancel/remove alerts.