An error occurred while loading the file. Please try again.
-
Jacob Zimmerman authored
This lets people configure what shows up on the courses index at a per-deployment level. This solves what we need for both autolab.cs.cmu.edu as well as autolab.andrew.cmu.edu in a way that's flexible enough to be used by others. __Summary__: - Based off of @cg2v's original PR (#551) - Thanks for the initial work! - Rename topannounce partial to .template, add to gitignore - Remove `@mysite` variable - Instead of having the `@mysite` variable keep track of what should be displayed, we'll just always show the _topannounce message, and write a different one on every host where it's necessary. If the template doesn't exist, we don't render a message on that host. - Remove social buttons from _footer - We can move these to the CMU-specific _topannounce file so that people can opt into having these on their site. Also, it restricts it to the courses page, so it's less intrusive on the user experience. __TODO (after landing)__: - [ ] Remember to add this to CMU _topannounce after landing: ```html <h1>Think Autolab's awesome?</h1> <p>Help spread the word!</p> <div> <a class="github-button" href="https://github.com/autolab/Autolab" data-count-href="/autolab/Autolab/stargazers" data-count-api="/repos/autolab/Autolab#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star autolab/Autolab on GitHub">Github</a> <br> <div class="fb-like" data-href="https://www.facebook.com/autolabproject" data-width="300" data-layout="standard" data-action="like" data-show-faces="false" data-share="false"></div> </div> ``` - [ ] Update documentation in wiki showing how to use _topannounce
a1501a2e
log/
tmp/cache/
config/autogradeConfig.rb
assessmentConfig/
courseConfig/
config/environments/production.rb
config/initializers/devise.rb
/courses/
/courses
/gradebooks/
config/database.yml
public/images/CourseSubmissions.png
public/images/HourlySubmissions.png
public/assets/
public/stylesheets/
vendor/
tmp/
!tmp/restart.txt
*.swp
db/*.sqlite3
tags
.DS_Store
.idea/
/docker/nginx.conf
app/views/home/_topannounce.html.erb