component_viewer.covered_lines=Covered Lines
component_viewer.issues_limit_reached=For usability reasons, only the {0} first issues will be fully displayed. Remaining issues will simply be underlined.
component_viewer.issues_limit_reached_tooltip={0}\n\nRefine your filter to be able to see the details of this issue.
+component_viewer.cannot_show=We're sorry, but something went wrong. Please try back in a few minutes and contact support if the problem persists.
component_viewer.workspace=Workspace
component_viewer.workspace.tooltip=Keeps track of history of navigation
if @settings.get('scm') then @showSCM() else @hideSCM()
@trigger 'loaded'
.fail =>
- @state.set 'removed', true
- @state.set 'hasSource', false
- @render()
- @trigger 'loaded'
+ if component.status == 404
+ @state.set 'removed', true
+ @state.set 'hasSource', false
+ @render()
+ @trigger 'loaded'
+ else @cannotOpen()
+
+
+ cannotOpen: ->
+ @$el.html "<div class='message-error'>#{t 'component_viewer.cannot_show'}</div>"
toggleWorkspace: (store = false) ->
padding: 5px 8px;
border: 2px solid @orange;
}
+
+.message-error {
+ display: block;
+ padding: 5px 8px;
+ background-color: @red;
+ color: #fff;
+}