[component] [description]Innlogging og redigeringslenker for helseforskprosjekter og listinger[/description] [def rc request-context()] [def dict request.messages.get(request.lang)] [if rc.principal = null]
[else] [def res retrieve(rc.resource-uri)] [if res.success] [def resource res.value] [if resource.resourcetype = "helseforsk-listing"] [val dict.registerProject] [elseif resource.resourcetype = "helseforsk"] [def auth authorize(request-context().resource-uri, "read-write")] [if auth.success && auth.value] [def editURL rc.url(resource.uri, "ajaxeditor.service")] [if editURL.success] [endif] [endif] [endif] [endif] [endif] [/component] [messages] no.registerProject = Registrer nytt prosjekt nn.registerProject = Registrer nytt prosjekt en.registerProject = Register new project no.editProject = Rediger prosjekt nn.editProject = Rediger prosjekt en.editProject = Edit project [/messages]