'Returns dataset\'s name and link.'

@web.expose
@web.json
@web.require_login('use    Galaxy    datasets')
def get_name_and_link_async(self, trans, id=None):

    decoded_id = self.decode_id(id)
    dataset = self.hda_manager.get_accessible(decoded_id, trans.user)
    dataset = self.hda_manager.error_if_uploading(dataset)
    return_dict = {'name': dataset.name, 'link': url_for(controller='dataset', action='display_by_username_and_slug', username=dataset.history.user.username, slug=trans.security.encode_id(dataset.id))}
    return return_dict
