Improvements to hint UI

- Created and moved duplicated code into new partials:
  - _add_hint.html.haml
  - _edit_hint_table.html.haml
  - edit_hint_table_status_button.html.haml
- Renamed variable @level_source_hints to @hints (because I accidentally got the whole
  database table when I forgot to initialize it).
- Removed infrequently used links and unneeded columns.
- Improved messaging around empty tables, restrictions, and hint solicitation.
- Added new view show_hints (which I may later merge with an existing view).
TODO:
- i18n
- Facilitate reviewing hints by enabling restrictions on more views, not just review_hints.

See this diagram, which helped me understand the flow among pages: https://docs.google.com/a/code.org/drawings/d/1yidY-TLCtQODoNyfMgfrSdo1-MspOGrCNkxD1vJybZw/edit?usp=sharing
Thanks, I didn't know the convention.


On Wed, Aug 13, 2014 at 12:05 PM, Brian Jordan <notifications@github.com>
wrote:

> In app/views/shared/_edit_hint_table_status_button.html.haml:
>
> > @@ -0,0 +1,7 @@
> > +-# This should be rendered from _edit_hint_table.html.haml (where update_status
> > +-# is defined) with local status_val and level_source_hint, and it assumes that
> > +-# the user is an administrator.  (Otherwise, the user shouldn't be given the
> > +-# option of changing the status.
> > +=radio_button_tag 'status', status_val,
>
> Space after =
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/code-dot-org/dashboard/pull/1146/files#r16197670>.
>