Skip to content

Commit

Permalink
Allow hyperlink in User block
Browse files Browse the repository at this point in the history
The hyperlink in the user block was always empty. This might be misleader for users.
  • Loading branch information
robertkck committed Aug 13, 2021
1 parent ee2437c commit f2061a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/boxes.R
Original file line number Diff line number Diff line change
Expand Up @@ -1044,17 +1044,18 @@ socialBox <- function(..., title = NULL, footer = NULL, width = 6, height = NULL
#' @param image User image.
#' @param title A title, user name,...
#' @param subtitle Any subtitle.
#' @param href Target url or page.
#'
#' @rdname socialBox
#'
#' @export
userBlock <- function(image, title, subtitle = NULL) {
userBlock <- function(image, title, subtitle = NULL, href = "javascript:void(0)") {
shiny::tags$div(
class = "user-block",
shiny::img(class = "img-circle", src = image),
shiny::tags$span(
class = "username",
shiny::a(href = "javascript:void(0)", title)
shiny::a(href, title)
),
if (!is.null(subtitle)) shiny::tags$span(class = "description", subtitle)
)
Expand Down

0 comments on commit f2061a2

Please sign in to comment.