Skip to content

Commit

Permalink
#111 closed: "Remove Delete button in profile"
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatov committed Aug 3, 2011
1 parent 5a20316 commit fb2b5be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/scala/scala/tools/colladoc/snippet/ProfileOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import net.liftweb.http.{SHtml, S, RequestVar}
import net.liftweb.mapper.{Ascending, By, OrderBy}
import lib.js.JqUI.{ColladocConfirm, SubmitFormWithValidation}
import net.liftweb.http.js.JsCmds.{Noop, RedirectTo, SetValById}
import net.liftweb.http.js.JE.Str
import net.liftweb.http.js.{JsCmds, JsCmd}
import net.liftweb.http.js.JE.{Str, JsRaw, AnonFunc}
import page.{Template, History, Profile}
import net.liftweb.common.Full
import net.liftweb.http.js.{JsCmds, JsCommands, JsCmd}

/**
* User profile snippet.
Expand Down Expand Up @@ -198,10 +198,8 @@ class ProfileOps {

def deleteProfile(user: User) = {
<div id="delete_account">
<h2>Delete account</h2>
{
SHtml.ajaxButton(
"Delete",
SHtml.a(
ColladocConfirm("Confirm delete"),
() => {
user.deleted(true).save
Expand All @@ -213,7 +211,7 @@ class ProfileOps {
Noop
}
},
("class", "button"))
Text("Delete account"))
}
</div>
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/webapp/coprofile.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@

#delete_account {
margin-top: 8px;
}

#delete_account > a {
font-weight: bold;
color: #993300;
}

Expand Down

0 comments on commit fb2b5be

Please sign in to comment.