We should add a ssh-key/%/%/%sshkey/export callback that triggers a download of the key file.

Comments

pwolanin’s picture

Is this duplicate to what I implemented at http://drupal.org/node/1128446 ?

dave reid’s picture

Well this would basically have the same thing, but would trigger a Content-Disposition header to cause the browser to download the output. We could easily add the functionality into the view callback in order to do both since we don't need separate view and download permissions.

pwolanin’s picture

Well, I think with what I implemented you can just right-click "save as", or save it once it's loaded. I don't really see why you need the content disposition header really, unless you have some useful way to set the file name.

dave reid’s picture

Yeah, you can set the 'suggested' filename. I'm still not convinced on a download link, so I'll focus on #1128446: Add a 'view' operation to SSH keys so the view permissions actually do something for now.

colan’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

There must be a Views plugin for that so marking this as a duplicate of #2318431: Add entity_id and entity_type to available views data. Feel free to reopen if I'm missing something.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.