hunk.code_window: 	if err != nil {
   		return &httperror.HandlerError{http.StatusBadRequest, "Invalid stack identifier route variable", err}
   	}
   	externalStack, _ := request.RetrieveBooleanQueryParameter(r, "external", true)
   	if externalStack {
   		return handler.deleteExternalStack(r, w, stackID)
   	}
   	id, err := strconv.Atoi(stackID)
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit: 	log.Printf("External stack value: %v", externalStack)
  
hunk.file_path: api/http/handler/stacks/stack_delete.go
hunk.type: add
file: <rd-header>
    <rd-header-title title-text="Template details">
      <a data-toggle="tooltip" title-text="Refresh" ui-sref="portainer.templates.template({id: template.Id})" ui-sref-opts="{reload: true}">
        <i class="fa fa-sync" aria-hidden="true"></i>
      </a>
    </rd-header-title>
    <rd-header-content>
      <a ui-sref="portainer.templates">Templates</a> &gt; {{ ::template.Title }}</a>
    </rd-header-content>
  </rd-header>
  
  <div class="row">
    <div class="col-sm-12">
      <rd-widget>
        <rd-widget-body>
          <template-form
            model="template"
            categories="categories"
            networks="networks"
            form-action="update"
            show-type-selector="false"
            form-action-label="Update the template"
            action-in-progress="state.actionInProgress"
          ></template-form>
        </rd-widget-body>
      </rd-widget>
    </div>
  </div>
  