Castle.MonoRail.ActiveRecordScaffold.Helpers.PresentationHelper.LinkToList C# (CSharp) Method

LinkToList() public method

public LinkToList ( ActiveRecordModel model, bool useModelName, String text, IDictionary attributes ) : String
model Castle.ActiveRecord.Framework.Internal.ActiveRecordModel
useModelName bool
text String
attributes IDictionary
return String
		public String LinkToList(ActiveRecordModel model, bool useModelName, String text, IDictionary attributes)
		{
			if (useModelName)
			{
				return String.Format("<a href=\"list{0}.{1}\" {3}>{2}</a>", model.Type.Name, 
					Controller.Context.UrlInfo.Extension, text, GetAttributes(attributes));
			}
			else
			{
				return String.Format("<a href=\"list.{0}\" {2}>{1}</a>", 
					Controller.Context.UrlInfo.Extension, text, GetAttributes(attributes));
			}
		}