Added link to assignments page on students index
added missing 'end'
Added admin check
Added file upload filed if admin

Using and If statement to show and upload field if the user is an admin.
using same code that we coded in class on 3-21-14