Only show the percentage of unresolved mappings when some exist

- Use an instance variable defined in the controller instead of data
  access in the views - pointed out by @jamiecobbett.
- Indent inside the `if` statement.